public static enum IronGolemEntity.Crack extends Enum<IronGolemEntity.Crack>
Modifier and Type | Field and Description |
---|---|
private float |
maxHealthFraction |
private static List<IronGolemEntity.Crack> |
VALUES |
Modifier and Type | Method and Description |
---|---|
static IronGolemEntity.Crack |
from(float healthFraction) |
static IronGolemEntity.Crack |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IronGolemEntity.Crack[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IronGolemEntity.Crack NONE
public static final IronGolemEntity.Crack LOW
public static final IronGolemEntity.Crack MEDIUM
public static final IronGolemEntity.Crack HIGH
private static final List<IronGolemEntity.Crack> VALUES
private final float maxHealthFraction
public static IronGolemEntity.Crack[] values()
for (IronGolemEntity.Crack c : IronGolemEntity.Crack.values()) System.out.println(c);
public static IronGolemEntity.Crack valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static IronGolemEntity.Crack from(float healthFraction)