Package net.minecraftforge.event
Class GatherComponentsEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.GatherComponentsEvent
- Direct Known Subclasses:
GatherComponentsEvent.Item
public abstract class GatherComponentsEvent
extends net.minecraftforge.eventbus.api.Event
Where all the events fore Gathering Components will exist.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
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
Modifier and TypeFieldDescriptionprivate final DataComponentMap.Builder
private final DataComponentMap
private final Object
-
Constructor Summary
ModifierConstructorDescriptionprotected
GatherComponentsEvent
(Object owner, DataComponentMap originalComponents) -
Method Summary
Modifier and TypeMethodDescriptiongetOwner()
<T> void
register
(DataComponentType<T> componentType, T value) Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
components
-
originalComponents
-
owner
-
-
Constructor Details
-
GatherComponentsEvent
-
-
Method Details
-
register
-
getDataComponentMap
-
getOriginalComponentMap
-
getOwner
-