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 Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface StringRepresentable
StringRepresentable.EnumCodec<E>, StringRepresentable.StringRepresentableCodec<S> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate static final IntFunction<Armadillo.ArmadilloState> private static final com.mojang.serialization.Codec<Armadillo.ArmadilloState> private final intprivate final booleanprivate final Stringstatic final StreamCodec<io.netty.buffer.ByteBuf, Armadillo.ArmadilloState> Fields inherited from interface StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateArmadilloState(String name, boolean isThreatened, int animationDuration, int id) -
Method Summary
Modifier and TypeMethodDescriptionintprivate intid()booleanabstract booleanshouldHideInShell(long ticksInState) static Armadillo.ArmadilloStateReturns 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
-
getSerializedName
- Specified by:
getSerializedNamein interfaceStringRepresentable
-
id
private int id() -
shouldHideInShell
public abstract boolean shouldHideInShell(long ticksInState) -
isThreatened
public boolean isThreatened() -
animationDuration
public int animationDuration()
-