Package com.pixelmonmod.pixelmon.enums
Enum Class EnumStatueTextureType
- All Implemented Interfaces:
ITranslatable
,Serializable
,Comparable<EnumStatueTextureType>
,Constable
Texture options for statues.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnumStatueTextureType
getFromOrdinal
(int value) Gets a texture from its enum ordinal.static EnumStatueTextureType
getFromString
(String name) Gets a texture from its name.Gets the next texture in index order.static EnumStatueTextureType
Returns the enum constant of this class with the specified name.static EnumStatueTextureType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Enum Constant Details
-
OriginalTexture
-
Stone
-
Gold
-
Bronze
-
Silver
-
Green
-
Yellow
-
Red
-
Orange
-
Cyan
-
Blue
-
Indigo
-
Magenta
-
Pink
-
Gray
-
Brown
-
-
Field Details
-
index
public int index -
color
-
texture
public net.minecraft.resources.ResourceLocation texture
-
-
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
-
getFromOrdinal
Gets a texture from its enum ordinal.- Parameters:
value
- The enum ordinal to get a statue texture from.- Returns:
- The texture corresponding to the ordinal, or null if the ordinal is out of bounds.
-
getNextType
Gets the next texture in index order.- Parameters:
t
- The current texture to get the next texture from.- Returns:
- The next texture from the current texture.
-
getFromString
Gets a texture from its name.- Parameters:
name
- The name of the texture.- Returns:
- The texture with the specified name, or null if no texture has the specified name.
-
getTranslationKey
- Specified by:
getTranslationKey
in interfaceITranslatable
-