Enum Class Axolotl.Variant
- All Implemented Interfaces:
Serializable
,Comparable<Axolotl.Variant>
,Constable
,StringRepresentable
- Enclosing class:
Axolotl
-
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 static final IntFunction
<Axolotl.Variant> static final com.mojang.serialization.Codec
<Axolotl.Variant> private final boolean
static final Axolotl.Variant
private final int
static final com.mojang.serialization.Codec
<Axolotl.Variant> Deprecated.private final String
static final StreamCodec
<io.netty.buffer.ByteBuf, Axolotl.Variant> Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Axolotl.Variant
byId
(int p_262930_) static Axolotl.Variant
getCommonSpawnVariant
(RandomSource p_218449_) int
getId()
getName()
static Axolotl.Variant
getRareSpawnVariant
(RandomSource p_218454_) private static Axolotl.Variant
getSpawnVariant
(RandomSource p_218451_, boolean p_218452_) static Axolotl.Variant
Returns the enum constant of this class with the specified name.static Axolotl.Variant[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LUCY
-
WILD
-
GOLD
-
CYAN
-
BLUE
-
-
Field Details
-
DEFAULT
-
BY_ID
-
STREAM_CODEC
-
CODEC
-
LEGACY_CODEC
Deprecated. -
id
private final int id -
name
-
common
private final boolean common
-
-
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
-
getId
public int getId() -
getName
-
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-
byId
-
getCommonSpawnVariant
-
getRareSpawnVariant
-
getSpawnVariant
-