Class ItemColors

java.lang.Object
net.minecraft.client.color.item.ItemColors

@Environment(CLIENT) public class ItemColors extends Object
Mappings:
Namespace Name
official ekk
intermediary net/minecraft/class_325
named net/minecraft/client/color/item/ItemColors
  • Field Details

    • NO_COLOR

      private static final int NO_COLOR
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lekk;a:I
      intermediary field_32165 Lnet/minecraft/class_325;field_32165:I
      named NO_COLOR Lnet/minecraft/client/color/item/ItemColors;NO_COLOR:I
    • providers

      private final IdList<ItemColorProvider> providers
      Mappings:
      Namespace Name Mixin selector
      official b Lekk;b:Lhf;
      intermediary field_1996 Lnet/minecraft/class_325;field_1996:Lnet/minecraft/class_2361;
      named providers Lnet/minecraft/client/color/item/ItemColors;providers:Lnet/minecraft/util/collection/IdList;
  • Constructor Details

    • ItemColors

      public ItemColors()
  • Method Details

    • create

      public static ItemColors create(BlockColors blockColors)
      Mappings:
      Namespace Name Mixin selector
      official a Lekk;a(Lekg;)Lekk;
      intermediary method_1706 Lnet/minecraft/class_325;method_1706(Lnet/minecraft/class_324;)Lnet/minecraft/class_325;
      named create Lnet/minecraft/client/color/item/ItemColors;create(Lnet/minecraft/client/color/block/BlockColors;)Lnet/minecraft/client/color/item/ItemColors;
    • getColor

      public int getColor(ItemStack item, int tintIndex)
      Mappings:
      Namespace Name Mixin selector
      official a Lekk;a(Lcdt;I)I
      intermediary method_1704 Lnet/minecraft/class_325;method_1704(Lnet/minecraft/class_1799;I)I
      named getColor Lnet/minecraft/client/color/item/ItemColors;getColor(Lnet/minecraft/item/ItemStack;I)I
    • register

      public void register(ItemColorProvider provider, ItemConvertible[] items)
      Mappings:
      Namespace Name Mixin selector
      official a Lekk;a(Lekj;[Lcjv;)V
      intermediary method_1708 Lnet/minecraft/class_325;method_1708(Lnet/minecraft/class_326;[Lnet/minecraft/class_1935;)V
      named register Lnet/minecraft/client/color/item/ItemColors;register(Lnet/minecraft/client/color/item/ItemColorProvider;[Lnet/minecraft/item/ItemConvertible;)V