Class ExpandDyedItemColor
java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandDyedItemColor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.item.component.DyedItemColorof(int rgb, boolean showInTooltip) Creates a new DyedItemColor with the given RGB color and whether it should show in the tooltip.static intrgb(net.minecraft.world.item.component.DyedItemColor internal) Gets the RGB color of the DyedItemColor.static booleanshowInTooltip(net.minecraft.world.item.component.DyedItemColor internal) Gets whether the DyedItemColor should show in the tooltip.static net.minecraft.world.item.component.DyedItemColorwithTooltip(net.minecraft.world.item.component.DyedItemColor internal, boolean tooltip) Sets whether the DyedItemColor should show in the tooltip.
-
Constructor Details
-
ExpandDyedItemColor
public ExpandDyedItemColor()
-
-
Method Details
-
of
public static net.minecraft.world.item.component.DyedItemColor of(int rgb, boolean showInTooltip) Creates a new DyedItemColor with the given RGB color and whether it should show in the tooltip.- Parameters:
rgb- The RGB color of the DyedItemColor.showInTooltip- Whether the DyedItemColor should show in the tooltip.- Returns:
- The new DyedItemColor.
-
showInTooltip
public static boolean showInTooltip(net.minecraft.world.item.component.DyedItemColor internal) Gets whether the DyedItemColor should show in the tooltip.- Returns:
- Whether the DyedItemColor should show in the tooltip.
-
rgb
public static int rgb(net.minecraft.world.item.component.DyedItemColor internal) Gets the RGB color of the DyedItemColor.- Returns:
- The RGB color of the DyedItemColor.
-
withTooltip
public static net.minecraft.world.item.component.DyedItemColor withTooltip(net.minecraft.world.item.component.DyedItemColor internal, boolean tooltip) Sets whether the DyedItemColor should show in the tooltip.- Parameters:
tooltip- Whether the DyedItemColor should show in the tooltip.- Returns:
- The DyedItemColor with the new tooltip setting.
-