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 EntityItem events. Contains a reference to the
EntityItem of interest. For most EntityItem events, there's little to no
additional useful data from the firing method that isn't already contained
within the EntityItem instance.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe relevant EntityItem for this event, already cast for you.Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
entityItem
-
-
Constructor Details
-
ItemEvent
Creates a new event for an EntityItem.- Parameters:
itemEntity
- The EntityItem for this event
-
-
Method Details
-
getEntityItem
The relevant EntityItem for this event, already cast for you.
-