Class RegisterCapabilitiesEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.common.capabilities.RegisterCapabilitiesEvent
- All Implemented Interfaces:
IModBusEvent
public final class RegisterCapabilitiesEvent
extends net.minecraftforge.eventbus.api.Event
implements IModBusEvent
This event fires when it is time to register your capabilities.
- See Also:
-
Nested Class Summary
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.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Constructor Details
-
RegisterCapabilitiesEvent
public RegisterCapabilitiesEvent()
-
-
Method Details
-
register
Registers a capability to be consumed by others. APIs who define the capability should call this. To retrieve the Capability instance, use the @CapabilityInject annotation.- Parameters:
type
- The type to be registered
-