Package net.minecraft.structure.pool
Enum StructurePool.Projection
- All Implemented Interfaces:
Serializable,Comparable<StructurePool.Projection>,java.lang.constant.Constable,StringIdentifiable
- Enclosing class:
- StructurePool
public static enum StructurePool.Projection extends Enum<StructurePool.Projection> implements StringIdentifiable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description RIGIDTERRAIN_MATCHING -
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<StructurePool.Projection>field_24956private Stringidprivate ImmutableList<StructureProcessor>processorsprivate static Map<String,StructurePool.Projection>PROJECTIONS_BY_ID -
Constructor Summary
Constructors Modifier Constructor Description privateProjection(String string, ImmutableList<StructureProcessor> immutableList) -
Method Summary
Modifier and Type Method Description StringasString()static StructurePool.ProjectiongetById(String id)StringgetId()ImmutableList<StructureProcessor>getProcessors()static StructurePool.ProjectionvalueOf(String name)Returns the enum constant of this type with the specified name.static StructurePool.Projection[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TERRAIN_MATCHING
-
RIGID
-
-
Field Details
-
field_24956
-
PROJECTIONS_BY_ID
-
id
-
processors
-
-
Constructor Details
-
Projection
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getId
-
getById
-
getProcessors
-
asString
- Specified by:
asStringin interfaceStringIdentifiable
-