Interface DyeableItem


public interface DyeableItem
Attach this to any item that can be colors. Automatically adds dye color recipes. Call addColoredItem(Item) to also register the item to the item color manager.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default <T extends net.minecraft.world.item.Item & DyeableItem>
    void
     
    static net.minecraft.world.item.ItemStack
    colorStack(net.minecraft.world.item.ItemStack stack, List<net.minecraft.world.item.DyeColor> dyeList)
     
    static net.minecraft.world.item.ItemStack
    colorStackDyeItem(net.minecraft.world.item.ItemStack stack, List<net.minecraft.world.item.DyeItem> dyeItemList)
     
    default int
    getColor(net.minecraft.world.item.ItemStack stack)
     
    default int
     
    default boolean
    hasColor(net.minecraft.world.item.ItemStack stack)
     
    default void
    removeColor(net.minecraft.world.item.ItemStack stack)
     
    default void
    setColor(net.minecraft.world.item.ItemStack stack, int color)
     
  • Field Details

  • Method Details

    • addColoredItem

      default <T extends net.minecraft.world.item.Item & DyeableItem> void addColoredItem(T item)
    • hasColor

      default boolean hasColor(net.minecraft.world.item.ItemStack stack)
    • getColor

      default int getColor(net.minecraft.world.item.ItemStack stack)
    • removeColor

      default void removeColor(net.minecraft.world.item.ItemStack stack)
    • setColor

      default void setColor(net.minecraft.world.item.ItemStack stack, int color)
    • getDefaultColor

      default int getDefaultColor()
    • colorStack

      static net.minecraft.world.item.ItemStack colorStack(net.minecraft.world.item.ItemStack stack, List<net.minecraft.world.item.DyeColor> dyeList)
    • colorStackDyeItem

      static net.minecraft.world.item.ItemStack colorStackDyeItem(net.minecraft.world.item.ItemStack stack, List<net.minecraft.world.item.DyeItem> dyeItemList)