Enum Class Armadillo.ArmadilloState
java.lang.Object
java.lang.Enum<Armadillo.ArmadilloState>
net.minecraft.world.entity.animal.armadillo.Armadillo.ArmadilloState
- All Implemented Interfaces:
Serializable
,Comparable<Armadillo.ArmadilloState>
,Constable
,StringRepresentable
- Enclosing class:
Armadillo
public static enum Armadillo.ArmadilloState
extends Enum<Armadillo.ArmadilloState>
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
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private static final IntFunction
<Armadillo.ArmadilloState> private static final StringRepresentable.EnumCodec
<Armadillo.ArmadilloState> private final int
private final boolean
private final String
static final StreamCodec
<io.netty.buffer.ByteBuf, Armadillo.ArmadilloState> Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Constructor Summary
ModifierConstructorDescriptionprivate
ArmadilloState
(String p_327882_, boolean p_330882_, int p_328662_, int p_328018_) -
Method Summary
Modifier and TypeMethodDescriptionint
static Armadillo.ArmadilloState
private int
id()
boolean
abstract boolean
shouldHideInShell
(long p_329790_) static Armadillo.ArmadilloState
Returns the enum constant of this class with the specified name.static Armadillo.ArmadilloState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDLE
-
ROLLING
-
SCARED
-
UNROLLING
-
-
Field Details
-
CODEC
-
BY_ID
-
STREAM_CODEC
-
name
-
isThreatened
private final boolean isThreatened -
animationDuration
private final int animationDuration -
id
private final int id
-
-
Constructor Details
-
ArmadilloState
-
-
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
-
getSerializedName
- Specified by:
getSerializedName
in interfaceStringRepresentable
-
id
private int id() -
shouldHideInShell
public abstract boolean shouldHideInShell(long p_329790_) -
isThreatened
public boolean isThreatened() -
animationDuration
public int animationDuration()
-