Enum AdvancementTabType

java.lang.Object
java.lang.Enum<AdvancementTabType>
net.minecraft.client.gui.screen.advancement.AdvancementTabType
All Implemented Interfaces:
Serializable, Comparable<AdvancementTabType>, java.lang.constant.Constable

@Environment(CLIENT)
enum AdvancementTabType
extends Enum<AdvancementTabType>
  • Enum Constant Details

  • Field Details

    • u

      private final int u
    • v

      private final int v
    • width

      private final int width
    • height

      private final int height
    • tabCount

      private final int tabCount
  • Constructor Details

    • AdvancementTabType

      private AdvancementTabType​(int u, int v, int width, int height, int tabCount)
  • Method Details

    • values

      public static AdvancementTabType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AdvancementTabType valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getTabCount

      public int getTabCount()
    • drawBackground

      public void drawBackground​(MatrixStack matrices, DrawableHelper drawableHelper, int int2, int int3, boolean bool, int int4)
    • drawIcon

      public void drawIcon​(int x, int y, int index, ItemRenderer itemRenderer, ItemStack icon)
    • getTabX

      public int getTabX​(int index)
    • getTabY

      public int getTabY​(int index)
    • isClickOnTab

      public boolean isClickOnTab​(int screenX, int screenY, int index, double mouseX, double mouseY)