Enum Class MushroomCow.Variant
- All Implemented Interfaces:
Serializable
,Comparable<MushroomCow.Variant>
,Constable
,StringRepresentable
- Enclosing class:
MushroomCow
public static enum MushroomCow.Variant
extends Enum<MushroomCow.Variant>
implements StringRepresentable
-
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.StringRepresentable
StringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockState
private static final IntFunction
<MushroomCow.Variant> static final com.mojang.serialization.Codec
<MushroomCow.Variant> static final MushroomCow.Variant
(package private) final int
static final StreamCodec
<io.netty.buffer.ByteBuf, MushroomCow.Variant> private final String
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static MushroomCow.Variant
byId
(int pId) private int
id()
static MushroomCow.Variant
Returns the enum constant of this class with the specified name.static MushroomCow.Variant[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RED
-
BROWN
-
-
Field Details
-
DEFAULT
-
CODEC
-
BY_ID
-
STREAM_CODEC
-
type
-
id
final int id -
blockState
-
-
Constructor Details
-
Variant
-
-
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
-
getBlockState
-
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-
id
private int id() -
byId
-