类 RegisterColorHandlersEvent.Item

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RegisterColorHandlersEvent
net.minecraftforge.client.event.RegisterColorHandlersEvent.Item
所有已实现的接口:
net.minecraftforge.fml.event.IModBusEvent
封闭类:
RegisterColorHandlersEvent

public static class RegisterColorHandlersEvent.Item extends 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.

  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getItemColors

      public ItemColors getItemColors()
      返回 the item colors registry。
      返回:
      the item colors registry
      另请参阅:
    • getBlockColors

      public BlockColors getBlockColors()
      返回 the block colors registry。 This should only be used for referencing or delegating item colors to their respective block colors.
      返回:
      the block colors registry
    • register

      public void register(ItemColor itemColor, ItemLike... items)
      Registers a ItemColor instance for a set of blocks.
      参数:
      itemColor - The color provider
      items - The items