Package net.minecraftforge.client.event
Class RegisterColorHandlersEvent.Block
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RegisterColorHandlersEvent
net.minecraftforge.client.event.RegisterColorHandlersEvent.Block
- All Implemented Interfaces:
IModBusEvent
- Enclosing class:
- RegisterColorHandlersEvent
Fired for registering block color handlers.
This event is not cancellable, and does not have a result.
This event is fired on the mod-specific event bus, only on the logical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.RegisterColorHandlersEvent
RegisterColorHandlersEvent.Block, RegisterColorHandlersEvent.ColorResolvers, RegisterColorHandlersEvent.Item
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the block colors registry.void
register
(BlockColor blockColor, Block... blocks) Registers aBlockColor
instance for a set of blocks.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
blockColors
-
-
Constructor Details
-
Block
-
-
Method Details
-
getBlockColors
Returns the block colors registry.- Returns:
- the block colors registry
- See Also:
-
register
Registers aBlockColor
instance for a set of blocks.- Parameters:
blockColor
- The color providerblocks
- The blocks
-