Package dev.jaxydog.astral.utility
Enum Class CowType
- All Implemented Interfaces:
Serializable,Comparable<CowType>,Constable,net.minecraft.util.StringIdentifiable
Determines a cow's texture variant.
- Since:
- 1.7.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
net.minecraft.util.StringIdentifiable.Codec<E extends Enum<E> & net.minecraft.util.StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.util.StringIdentifiable.Codec<CowType> A codec that allows for easy string lookups.static final net.minecraft.entity.data.TrackedData<String> A data tracker entry to be used withinCowEntityMixin.Fields inherited from interface net.minecraft.util.StringIdentifiable
field_38377 -
Method Summary
Modifier and TypeMethodDescriptionasString()static CowTypeReturns the variant associated with the given name, orBROWNif the given name is invalid.static CowTypeReturns the enum constant of this class with the specified name.static CowType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BROWN
A normal, brown cow.- Since:
- 1.7.0
-
PINK
A pink cow.- Since:
- 1.7.0
-
-
Field Details
-
CODEC
A codec that allows for easy string lookups.- Since:
- 1.7.0
-
COW_TYPE
A data tracker entry to be used withinCowEntityMixin.- Since:
- 1.7.0
-
-
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
-
fromName
Returns the variant associated with the given name, orBROWNif the given name is invalid.- Parameters:
name- The name of the variant.- Returns:
- The variant associated with the given name.
- Since:
- 1.7.0
-
asString
- Specified by:
asStringin interfacenet.minecraft.util.StringIdentifiable
-