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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ConstructorDescriptionArmorEffectEvent
(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 Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.player.Player
net.minecraft.world.item.ItemStack
getStack()
net.minecraft.world.level.Level
getWorld()
void
setArmorEffect
(IArmorEffect armorEffect) void
setAttributeModifier
(IItemAttributeModifier attributeModifier) Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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
-
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
-
getArmorEffect
-
setAttributeModifier
-
getAttributeModifier
-