Class AccessoryManager
java.lang.Object
tech.anonymoushacker1279.immersiveweapons.event.game_effects.AccessoryManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectDynamicAttributes(net.minecraft.world.entity.player.Player player) Collect the dynamic attribute modifiers from all active accessories in the player's inventory.static doublecollectEffects(AccessoryEffectType type, net.minecraft.world.entity.player.Player player) Collect the value of the given effect from all accessories in the player's inventory.static List<net.minecraft.world.effect.MobEffectInstance> collectMobEffects(net.minecraft.world.entity.player.Player player) Collect the mob effect instances from all active accessories in the player's inventory.static List<AttributeOperation> collectStandardAttributes(net.minecraft.world.entity.player.Player player) Collect the attribute modifiers from all active accessories in the player's inventory.static voidhandleAccessoryAttributes(net.minecraft.world.entity.player.Player player) Handle accessories with attribute modifiers during the player tick event.static voidhandleAccessoryMobEffects(net.minecraft.world.entity.player.Player player) Handle accessories with mob effects during the player tick event.
-
Constructor Details
-
AccessoryManager
public AccessoryManager()
-
-
Method Details
-
collectEffects
public static double collectEffects(AccessoryEffectType type, net.minecraft.world.entity.player.Player player) Collect the value of the given effect from all accessories in the player's inventory.- Parameters:
type- theEffectTypeto collectplayer- thePlayerto collect from- Returns:
- the value of the effect
-
collectStandardAttributes
public static List<AttributeOperation> collectStandardAttributes(net.minecraft.world.entity.player.Player player) Collect the attribute modifiers from all active accessories in the player's inventory.- Parameters:
player- thePlayerto collect from- Returns:
- a
Mapof attribute modifiers
-
collectDynamicAttributes
public static List<DynamicAttributeOperationInstance> collectDynamicAttributes(net.minecraft.world.entity.player.Player player) Collect the dynamic attribute modifiers from all active accessories in the player's inventory.- Parameters:
player- thePlayerto collect from- Returns:
- a
Mapof dynamic attribute modifiers with their target values
-
collectMobEffects
public static List<net.minecraft.world.effect.MobEffectInstance> collectMobEffects(net.minecraft.world.entity.player.Player player) Collect the mob effect instances from all active accessories in the player's inventory.- Parameters:
player- thePlayerto collect from- Returns:
- a
Listof mob effect instances
-
handleAccessoryMobEffects
public static void handleAccessoryMobEffects(net.minecraft.world.entity.player.Player player) Handle accessories with mob effects during the player tick event.- Parameters:
player- thePlayerto handle for
-
handleAccessoryAttributes
public static void handleAccessoryAttributes(net.minecraft.world.entity.player.Player player) Handle accessories with attribute modifiers during the player tick event.- Parameters:
player- thePlayerto handle for
-