public static enum MooshroomEntity.Type extends Enum<MooshroomEntity.Type>
Modifier and Type | Field and Description |
---|---|
private BlockState |
mushroom |
private String |
name |
Modifier and Type | Method and Description |
---|---|
private static MooshroomEntity.Type |
fromName(String name) |
BlockState |
getMushroomState() |
static MooshroomEntity.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MooshroomEntity.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MooshroomEntity.Type RED
public static final MooshroomEntity.Type BROWN
private final String name
private final BlockState mushroom
public static MooshroomEntity.Type[] values()
for (MooshroomEntity.Type c : MooshroomEntity.Type.values()) System.out.println(c);
public static MooshroomEntity.Type 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 null@Environment(value=CLIENT) public BlockState getMushroomState()
private static MooshroomEntity.Type fromName(String name)