Class AccessoryManager

java.lang.Object
tech.anonymoushacker1279.immersiveweapons.event.game_effects.AccessoryManager

public class AccessoryManager extends Object
  • 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 - the EffectType to collect
      player - the Player to 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 - the Player to collect from
      Returns:
      a Map of 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 - the Player to collect from
      Returns:
      a Map of 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 - the Player to collect from
      Returns:
      a List of 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 - the Player to 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 - the Player to handle for