Package info.u_team.u_team_core.api.dye
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 -
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends net.minecraft.world.item.Item & DyeableItem>
voidaddColoredItem
(T item) 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
-
TAG_DISPLAY
- See Also:
-
TAG_COLOR
- See Also:
-
DEFAULT_COLOR
static final int DEFAULT_COLOR- See Also:
-
-
Method Details
-
addColoredItem
-
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)
-