EntityLivingEquipmentChange

Link to entitylivingequipmentchange

EntityLivingEquipmentChangeEvent is fired when the Equipment of a Entity changes. This also includes entities joining the World, as well as being cloned.

slot contains the affected EntityEquipmentSlot. item contains the ItemStack that is equipped now. olditem contains the ItemStack that was equipped previously.

Класс события

Link to класс-события

You will need to cast the event in the function header as this class:
crafttweaker.event.EntityLivingEquipmentChangeEvent
You can, of course, also import the class before and use that name then.

Наследование от интерфейсов событий

Link to наследование-от-интерфейсов-событий

EntityLivingEquipmentChangeEvent implements the following interfaces and are able to call all of their methods/getters/setters as well:

Следующая информация может быть получена от события:

ZenGetterВозвращаемый тип
ZenGetter
newItem
Возвращаемый тип
IItemStack
ZenGetter
oldItem
Возвращаемый тип
IItemStack
ZenGetter
slot
Возвращаемый тип
IEntityEquipmentSlot