Class ExpandDyedItemColor

java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandDyedItemColor

@ZenRegister public class ExpandDyedItemColor extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    static int
    rgb(net.minecraft.world.item.component.DyedItemColor internal)
    Gets the RGB color of the DyedItemColor.
    static boolean
    showInTooltip(net.minecraft.world.item.component.DyedItemColor internal)
    Gets whether the DyedItemColor should show in the tooltip.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.