Package net.minecraftforge.client.event
Class RegisterColorHandlersEvent.Item
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RegisterColorHandlersEvent
net.minecraftforge.client.event.RegisterColorHandlersEvent.Item
- All Implemented Interfaces:
IModBusEvent
- Enclosing class:
- RegisterColorHandlersEvent
Fired for registering item color handlers.
The block colors should only be used for referencing or delegating item colors to their respective block
colors. Use RegisterColorHandlersEvent.Block for registering your 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.ItemNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the block colors registry.Returns the item colors registry.voidRegisters aItemColorinstance 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
-
itemColors
-
blockColors
-
-
Constructor Details
-
Item
-
-
Method Details
-
getItemColors
Returns the item colors registry.- Returns:
- the item colors registry
- See Also:
-
getBlockColors
Returns the block colors registry. This should only be used for referencing or delegating item colors to their respective block colors.- Returns:
- the block colors registry
-
register
Registers aItemColorinstance for a set of blocks.- Parameters:
itemColor- The color provideritems- The items
-