Enum Class TextureType
- All Implemented Interfaces:
Serializable
,Comparable<TextureType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetID()
static TextureType[]
getSupportedTypes
(Workspace workspace, boolean withArmor) Get allTextureType
s of the enum as a listboolean
isSupported
(Workspace workspace) toString()
static TextureType
Returns the enum constant of this class with the specified name.static TextureType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCK
-
ITEM
-
ENTITY
-
EFFECT
-
PARTICLE
-
SCREEN
-
ARMOR
-
OTHER
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getID
-
getSupportedTypes
Get all
TextureType
s 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
TextureType
s
-
isSupported
-
toString
- Overrides:
toString
in classEnum<TextureType>
-