public enum EnumOptionalSnapshotType extends java.lang.Enum<EnumOptionalSnapshotType> implements net.minecraft.util.IStringSerializable
EnumSnapshotType with NONE value.
Shouldn't be used where it's possible to use EnumSnapshotType.| Modifier and Type | Field and Description |
|---|---|
EnumSnapshotType |
type |
| Modifier and Type | Method and Description |
|---|---|
static EnumOptionalSnapshotType |
fromNullable(EnumSnapshotType type) |
java.lang.String |
getName() |
static EnumOptionalSnapshotType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumOptionalSnapshotType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumOptionalSnapshotType NONE
public static final EnumOptionalSnapshotType TEMPLATE
public static final EnumOptionalSnapshotType BLUEPRINT
public final EnumSnapshotType type
public static EnumOptionalSnapshotType[] values()
for (EnumOptionalSnapshotType c : EnumOptionalSnapshotType.values()) System.out.println(c);
public static EnumOptionalSnapshotType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static EnumOptionalSnapshotType fromNullable(EnumSnapshotType type)
public java.lang.String getName()
getName in interface net.minecraft.util.IStringSerializable