Enum RuinedPortalStructure.Location
- java.lang.Object
-
- java.lang.Enum<RuinedPortalStructure.Location>
-
- net.minecraft.world.gen.feature.structure.RuinedPortalStructure.Location
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RuinedPortalStructure.Location>
,IStringSerializable
- Enclosing class:
- RuinedPortalStructure
public static enum RuinedPortalStructure.Location extends java.lang.Enum<RuinedPortalStructure.Location> implements IStringSerializable
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,RuinedPortalStructure.Location>
BY_NAME
static com.mojang.serialization.Codec<RuinedPortalStructure.Location>
CODEC
private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
Location(java.lang.String p_i231986_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RuinedPortalStructure.Location
byName(java.lang.String p_236346_0_)
java.lang.String
getName()
java.lang.String
getSerializedName()
static RuinedPortalStructure.Location
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RuinedPortalStructure.Location[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STANDARD
public static final RuinedPortalStructure.Location STANDARD
-
DESERT
public static final RuinedPortalStructure.Location DESERT
-
JUNGLE
public static final RuinedPortalStructure.Location JUNGLE
-
SWAMP
public static final RuinedPortalStructure.Location SWAMP
-
MOUNTAIN
public static final RuinedPortalStructure.Location MOUNTAIN
-
OCEAN
public static final RuinedPortalStructure.Location OCEAN
-
NETHER
public static final RuinedPortalStructure.Location NETHER
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<RuinedPortalStructure.Location> CODEC
-
BY_NAME
private static final java.util.Map<java.lang.String,RuinedPortalStructure.Location> BY_NAME
-
name
private final java.lang.String name
-
-
Method Detail
-
values
public static RuinedPortalStructure.Location[] 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 (RuinedPortalStructure.Location c : RuinedPortalStructure.Location.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RuinedPortalStructure.Location 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
-
getName
public java.lang.String getName()
-
byName
public static RuinedPortalStructure.Location byName(java.lang.String p_236346_0_)
-
getSerializedName
public java.lang.String getSerializedName()
- Specified by:
getSerializedName
in interfaceIStringSerializable
-
-