public class LivingEquipmentChangeEvent extends LivingEvent
LivingEquipmentChangeEvent
is fired when the Equipment of a Entity changes. EntityLivingBase#onUpdate()
. slot
contains the affected EntityEquipmentSlot
. from
contains the ItemStack
that was equipped previously. to
contains the ItemStack
that is equipped now. Cancelable
. HasResult
MinecraftForge.EVENT_BUS
.LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Event.HasResult, Event.Result
コンストラクタと説明 |
---|
LivingEquipmentChangeEvent(LivingEntity entity,
EquipmentSlotType slot,
ItemStack from,
ItemStack to) |
修飾子とタイプ | メソッドと説明 |
---|---|
ItemStack |
getFrom() |
EquipmentSlotType |
getSlot() |
ItemStack |
getTo() |
getEntityLiving
getEntity
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public LivingEquipmentChangeEvent(LivingEntity entity, EquipmentSlotType slot, @Nonnull ItemStack from, @Nonnull ItemStack to)
public EquipmentSlotType getSlot()
@Nonnull public ItemStack getFrom()
@Nonnull public ItemStack getTo()