Enum JigsawPattern.PlacementBehaviour
- java.lang.Object
-
- java.lang.Enum<JigsawPattern.PlacementBehaviour>
-
- net.minecraft.world.gen.feature.jigsaw.JigsawPattern.PlacementBehaviour
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<JigsawPattern.PlacementBehaviour>,IStringSerializable,IExtensibleEnum
- Enclosing class:
- JigsawPattern
public static enum JigsawPattern.PlacementBehaviour extends java.lang.Enum<JigsawPattern.PlacementBehaviour> implements IStringSerializable, IExtensibleEnum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RIGIDTERRAIN_MATCHING
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.String,JigsawPattern.PlacementBehaviour>BY_NAMEstatic com.mojang.serialization.Codec<JigsawPattern.PlacementBehaviour>CODECprivate java.lang.Stringnameprivate com.google.common.collect.ImmutableList<StructureProcessor>processors
-
Constructor Summary
Constructors Modifier Constructor Description privatePlacementBehaviour(java.lang.String p_i50487_3_, com.google.common.collect.ImmutableList<StructureProcessor> p_i50487_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static JigsawPattern.PlacementBehaviourbyName(java.lang.String p_214938_0_)static JigsawPattern.PlacementBehaviourcreate(java.lang.String enumName, java.lang.String p_i50487_3_, com.google.common.collect.ImmutableList<StructureProcessor> p_i50487_4_)java.lang.StringgetName()com.google.common.collect.ImmutableList<StructureProcessor>getProcessors()java.lang.StringgetSerializedName()voidinit()Deprecated.static JigsawPattern.PlacementBehaviourvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static JigsawPattern.PlacementBehaviour[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TERRAIN_MATCHING
public static final JigsawPattern.PlacementBehaviour TERRAIN_MATCHING
-
RIGID
public static final JigsawPattern.PlacementBehaviour RIGID
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<JigsawPattern.PlacementBehaviour> CODEC
-
BY_NAME
private static final java.util.Map<java.lang.String,JigsawPattern.PlacementBehaviour> BY_NAME
-
name
private final java.lang.String name
-
processors
private final com.google.common.collect.ImmutableList<StructureProcessor> processors
-
-
Constructor Detail
-
PlacementBehaviour
private PlacementBehaviour(java.lang.String p_i50487_3_, com.google.common.collect.ImmutableList<StructureProcessor> p_i50487_4_)
-
-
Method Detail
-
values
public static JigsawPattern.PlacementBehaviour[] 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 (JigsawPattern.PlacementBehaviour c : JigsawPattern.PlacementBehaviour.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JigsawPattern.PlacementBehaviour 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 JigsawPattern.PlacementBehaviour byName(java.lang.String p_214938_0_)
-
getProcessors
public com.google.common.collect.ImmutableList<StructureProcessor> getProcessors()
-
getSerializedName
public java.lang.String getSerializedName()
- Specified by:
getSerializedNamein interfaceIStringSerializable
-
create
public static JigsawPattern.PlacementBehaviour create(java.lang.String enumName, java.lang.String p_i50487_3_, com.google.common.collect.ImmutableList<StructureProcessor> p_i50487_4_)
-
init
@Deprecated public void init()
Deprecated.Description copied from interface:IExtensibleEnumCalled by generated factory code to do any post-constructor setup required by the enum. Should not be called manually.- Specified by:
initin interfaceIExtensibleEnum
-
-