Class ArmorEffectEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.ArmorEffectEvent
Direct Known Subclasses:
ArmorEffectEvent.Attribute, ArmorEffectEvent.Effect

public abstract class ArmorEffectEvent extends net.minecraftforge.eventbus.api.Event
  • Constructor Details

    • ArmorEffectEvent

      public ArmorEffectEvent(GenericArmor armorItem, net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, IArmorEffect armorEffect, IItemAttributeModifier attributeModifier)
  • Method Details

    • getArmorItem

      public GenericArmor getArmorItem()
    • getWorld

      @Nullable public net.minecraft.world.level.Level getWorld()
    • getPlayer

      @Nullable public net.minecraft.world.entity.player.Player getPlayer()
    • getStack

      public net.minecraft.world.item.ItemStack getStack()
    • setArmorEffect

      public void setArmorEffect(IArmorEffect armorEffect)
    • getArmorEffect

      public IArmorEffect getArmorEffect()
    • setAttributeModifier

      public void setAttributeModifier(IItemAttributeModifier attributeModifier)
    • getAttributeModifier

      public IItemAttributeModifier getAttributeModifier()