Class ForgeEventBusWire
java.lang.Object
com.blamejared.crafttweaker.api.event.bus.ForgeEventBusWire
- All Implemented Interfaces:
IEventBusWire
Wires the given
IEventBus onto the default Forge's IEventBus.
The default event bus is MinecraftForge.EVENT_BUS.
By default, all even Phases are automatically wired according to the various EventPriority values
provided by Forge.
- Since:
- 11.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic IEventBusWireof()Obtains an instance of this class.<T> voidregisterBusForDispatch(com.google.common.reflect.TypeToken<T> eventType, IEventBus<T> bus) Performs the necessary work to wire the givenIEventBusto its platform-specific counterpart.
-
Method Details
-
of
Obtains an instance of this class.- Returns:
- An instance of this class.
- Since:
- 11.0.0
-
registerBusForDispatch
public <T> void registerBusForDispatch(com.google.common.reflect.TypeToken<T> eventType, IEventBus<T> bus) Description copied from interface:IEventBusWirePerforms the necessary work to wire the givenIEventBusto its platform-specific counterpart.- Specified by:
registerBusForDispatchin interfaceIEventBusWire- Type Parameters:
T- The type of the events fired in the bus.- Parameters:
eventType- The type of the events fired in the bus; this corresponds to invokingIEventBus.eventType()onbus.bus- TheIEventBusthat should be wired.
-