public abstract class ArmorEffectEvent
extends net.minecraftforge.eventbus.api.Event
Modifier and Type | Class and Description |
---|---|
static class |
ArmorEffectEvent.Attribute |
static class |
ArmorEffectEvent.Effect |
Constructor and Description |
---|
ArmorEffectEvent(GenericArmor armorItem,
net.minecraft.world.World world,
net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack stack,
IArmorEffect armorEffect,
IItemAttributeModifier attributeModifier) |
Modifier and Type | Method and Description |
---|---|
IArmorEffect |
getArmorEffect() |
GenericArmor |
getArmorItem() |
IItemAttributeModifier |
getAttributeModifier() |
net.minecraft.entity.player.PlayerEntity |
getPlayer() |
net.minecraft.item.ItemStack |
getStack() |
net.minecraft.world.World |
getWorld() |
void |
setArmorEffect(IArmorEffect armorEffect) |
void |
setAttributeModifier(IItemAttributeModifier attributeModifier) |
public ArmorEffectEvent(GenericArmor armorItem, net.minecraft.world.World world, net.minecraft.entity.player.PlayerEntity player, net.minecraft.item.ItemStack stack, IArmorEffect armorEffect, IItemAttributeModifier attributeModifier)
public GenericArmor getArmorItem()
@Nullable public net.minecraft.world.World getWorld()
@Nullable public net.minecraft.entity.player.PlayerEntity getPlayer()
public net.minecraft.item.ItemStack getStack()
public void setArmorEffect(IArmorEffect armorEffect)
public IArmorEffect getArmorEffect()
public void setAttributeModifier(IItemAttributeModifier attributeModifier)
public IItemAttributeModifier getAttributeModifier()