类 LivingEquipmentChangeEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.LivingEquipmentChangeEvent
LivingEquipmentChangeEvent
is fired when the Equipment of a Entity changes. This event is fired whenever changes in Equipment are detected in
LivingEntity.tick()
. This also includes entities joining the World, as well as being cloned.
This event is fired on server-side only.
slot
contains the affected EquipmentSlot
. from
contains the ItemStack
that was equipped previously. to
contains the ItemStack
that is equipped now. This event is not
Cancelable
. This event does not have a result.
Event.HasResult
This event is fired on the
MinecraftForge.EVENT_BUS
.-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEvent
从类继承的嵌套类/接口 net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器构造器说明LivingEquipmentChangeEvent
(LivingEntity entity, EquipmentSlot slot, @NotNull ItemStack from, @NotNull ItemStack to) -
方法概要
从类继承的方法 net.minecraftforge.event.entity.living.LivingEvent
getEntity
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
slot
-
from
-
to
-
-
构造器详细资料
-
LivingEquipmentChangeEvent
public LivingEquipmentChangeEvent(LivingEntity entity, EquipmentSlot slot, @NotNull @NotNull ItemStack from, @NotNull @NotNull ItemStack to)
-
-
方法详细资料
-
getSlot
-
getFrom
-
getTo
-