Package net.minecraft.entity.passive
Enum IronGolemEntity.Cracks
- java.lang.Object
-
- java.lang.Enum<IronGolemEntity.Cracks>
-
- net.minecraft.entity.passive.IronGolemEntity.Cracks
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IronGolemEntity.Cracks>
- Enclosing class:
- IronGolemEntity
public static enum IronGolemEntity.Cracks extends java.lang.Enum<IronGolemEntity.Cracks>
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<IronGolemEntity.Cracks>
BY_DAMAGE
private float
fraction
-
Constructor Summary
Constructors Modifier Constructor Description private
Cracks(float p_i225732_3_)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IronGolemEntity.Cracks
byFraction(float p_226515_0_)
static IronGolemEntity.Cracks
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IronGolemEntity.Cracks[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final IronGolemEntity.Cracks NONE
-
LOW
public static final IronGolemEntity.Cracks LOW
-
MEDIUM
public static final IronGolemEntity.Cracks MEDIUM
-
HIGH
public static final IronGolemEntity.Cracks HIGH
-
-
Field Detail
-
BY_DAMAGE
private static final java.util.List<IronGolemEntity.Cracks> BY_DAMAGE
-
fraction
private final float fraction
-
-
Method Detail
-
values
public static IronGolemEntity.Cracks[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IronGolemEntity.Cracks c : IronGolemEntity.Cracks.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IronGolemEntity.Cracks valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
byFraction
public static IronGolemEntity.Cracks byFraction(float p_226515_0_)
-
-