Interface ItemColorProvider


@Environment(CLIENT) public interface ItemColorProvider
Mappings:
Namespace Name
official eor
intermediary net/minecraft/class_326
named net/minecraft/client/color/item/ItemColorProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getColor(ItemStack stack, int tintIndex)
    Returns the color of the item stack for the specified tint index, or -1 if not tinted.
  • Method Details

    • getColor

      int getColor(ItemStack stack, int tintIndex)
      Returns the color of the item stack for the specified tint index, or -1 if not tinted.
      Returns:
      the color of the item stack for the specified tint index, or -1 if not tinted
      Mappings:
      Namespace Name Mixin selector
      official getColor Leor;getColor(Lcfz;I)I
      intermediary getColor Lnet/minecraft/class_326;getColor(Lnet/minecraft/class_1799;I)I
      named getColor Lnet/minecraft/client/color/item/ItemColorProvider;getColor(Lnet/minecraft/item/ItemStack;I)I