Class ItemEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.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 Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.Size
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
itemEntity
-
-
Constructor Details
-
ItemEvent
Creates a new event for anItemEntity
.- Parameters:
itemEntity
- The ItemEntity for this event
-
-
Method Details
-
getEntity
The relevantItemEntity
for this event.- Overrides:
getEntity
in classEntityEvent
-