Package net.minecraftforge.event
Class GatherComponentsEvent.Item
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.GatherComponentsEvent
net.minecraftforge.event.GatherComponentsEvent.Item
- Enclosing class:
GatherComponentsEvent
Used to get additional Components for any
Item
Fired once for every Item
instance, only once, Lazily.
Recursion is not supported. Cant call Item.components()
as that would cause a loop.
References in Items
may not be valid at the current time.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.GatherComponentsEvent
GatherComponentsEvent.Item
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.event.GatherComponentsEvent
getDataComponentMap, getOriginalComponentMap, register
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Item
-
-
Method Details
-
getOwner
- Overrides:
getOwner
in classGatherComponentsEvent
-