Enum RuinedPortalPiece.Location
- java.lang.Object
-
- java.lang.Enum<RuinedPortalPiece.Location>
-
- net.minecraft.world.gen.feature.structure.RuinedPortalPiece.Location
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RuinedPortalPiece.Location>
- Enclosing class:
- RuinedPortalPiece
public static enum RuinedPortalPiece.Location extends java.lang.Enum<RuinedPortalPiece.Location>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IN_MOUNTAIN
IN_NETHER
ON_LAND_SURFACE
ON_OCEAN_FLOOR
PARTLY_BURIED
UNDERGROUND
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,RuinedPortalPiece.Location>
BY_NAME
private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
Location(java.lang.String p_i232113_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RuinedPortalPiece.Location
byName(java.lang.String p_237042_0_)
java.lang.String
getName()
static RuinedPortalPiece.Location
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RuinedPortalPiece.Location[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ON_LAND_SURFACE
public static final RuinedPortalPiece.Location ON_LAND_SURFACE
-
PARTLY_BURIED
public static final RuinedPortalPiece.Location PARTLY_BURIED
-
ON_OCEAN_FLOOR
public static final RuinedPortalPiece.Location ON_OCEAN_FLOOR
-
IN_MOUNTAIN
public static final RuinedPortalPiece.Location IN_MOUNTAIN
-
UNDERGROUND
public static final RuinedPortalPiece.Location UNDERGROUND
-
IN_NETHER
public static final RuinedPortalPiece.Location IN_NETHER
-
-
Field Detail
-
BY_NAME
private static final java.util.Map<java.lang.String,RuinedPortalPiece.Location> BY_NAME
-
name
private final java.lang.String name
-
-
Method Detail
-
values
public static RuinedPortalPiece.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 (RuinedPortalPiece.Location c : RuinedPortalPiece.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 RuinedPortalPiece.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 RuinedPortalPiece.Location byName(java.lang.String p_237042_0_)
-
-