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.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Constructor and Description | 
|---|
LivingEquipmentChangeEvent(EntityLivingBase entity,
                          EntityEquipmentSlot slot,
                          ItemStack from,
                          ItemStack to)  | 
| Modifier and Type | Method and Description | 
|---|---|
ItemStack | 
getFrom()  | 
EntityEquipmentSlot | 
getSlot()  | 
ItemStack | 
getTo()  | 
getEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic LivingEquipmentChangeEvent(EntityLivingBase entity, EntityEquipmentSlot slot, ItemStack from, ItemStack to)
public EntityEquipmentSlot getSlot()
public ItemStack getFrom()
public ItemStack getTo()