Enum Class TextureType

java.lang.Object
java.lang.Enum<TextureType>
net.mcreator.ui.workspace.resources.TextureType
All Implemented Interfaces:
Serializable, Comparable<TextureType>, Constable

public enum TextureType extends Enum<TextureType>
  • Enum Constant Details

  • Method Details

    • values

      public static TextureType[] 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

      public static TextureType 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
    • getID

      public String getID()
    • getSupportedTypes

      public static TextureType[] getSupportedTypes(Workspace workspace, boolean withArmor)

      Get all TextureTypes of the enum as a list

      Parameters:
      withArmor -

      Set to true to include the armor texture type into the possible types.

      Returns:

      A list of TextureTypes

    • isSupported

      public boolean isSupported(Workspace workspace)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TextureType>