Enum Class TextureFormat

java.lang.Object
java.lang.Enum<TextureFormat>
com.mojang.blaze3d.textures.TextureFormat
All Implemented Interfaces:
Serializable, Comparable<TextureFormat>, Constable

@Environment(CLIENT) public enum TextureFormat extends Enum<TextureFormat>
Mappings:
Namespace Name
named com/mojang/blaze3d/textures/TextureFormat
intermediary com/mojang/blaze3d/textures/TextureFormat
official com/mojang/blaze3d/textures/TextureFormat
  • Enum Constant Details Link icon

  • Field Details Link icon

    • pixelSize Link icon

      private final int pixelSize
  • Constructor Details Link icon

    • TextureFormat Link icon

      private TextureFormat(int pixelSie)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lcom/mojang/blaze3d/textures/TextureFormat;<init>(Ljava/lang/String;II)V
      intermediary <init> Lcom/mojang/blaze3d/textures/TextureFormat;<init>(Ljava/lang/String;II)V
      official <init> Lcom/mojang/blaze3d/textures/TextureFormat;<init>(Ljava/lang/String;II)V
  • Method Details Link icon

    • values Link icon

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

      public static TextureFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • pixelSize Link icon

      public int pixelSize()
    • hasColorAspect Link icon

      public boolean hasColorAspect()
    • hasDepthAspect Link icon

      public boolean hasDepthAspect()