Class ItemEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.item.ItemEvent
- Direct Known Subclasses:
- ItemExpireEvent,- ItemTossEvent
Base class for all 
ItemEntity events. Contains a reference to the
 ItemEntity of interest. For most ItemEntity events, there's little to no
 additional useful data from the firing method that isn't already contained
 within the ItemEntity instance.- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEventEntityEvent.EnteringSection, EntityEvent.EntityConstructingNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Field Details- 
itemEntity
 
- 
- 
Constructor Details- 
ItemEventCreates a new event for anItemEntity.- Parameters:
- itemEntity- The ItemEntity for this event
 
 
- 
- 
Method Details- 
getEntityThe relevantItemEntityfor this event.- Overrides:
- getEntityin class- EntityEvent
 
 
-