Enum Class AbstractSpreadingStructurePlacement.FrequencyReductionMethod
java.lang.Object
java.lang.Enum<AbstractSpreadingStructurePlacement.FrequencyReductionMethod>
net.minecraft.world.level.levelgen.structure.placement.AbstractSpreadingStructurePlacement.FrequencyReductionMethod
- All Implemented Interfaces:
Serializable, Comparable<AbstractSpreadingStructurePlacement.FrequencyReductionMethod>, Constable, StringRepresentable
- Enclosing class:
AbstractSpreadingStructurePlacement
public static enum AbstractSpreadingStructurePlacement.FrequencyReductionMethod
extends Enum<AbstractSpreadingStructurePlacement.FrequencyReductionMethod>
implements StringRepresentable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface StringRepresentable
StringRepresentable.EnumCodec<E>, StringRepresentable.StringRepresentableCodec<S> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<AbstractSpreadingStructurePlacement.FrequencyReductionMethod> private final Stringprivate final AbstractSpreadingStructurePlacement.FrequencyReducerFields inherited from interface StringRepresentable
PRE_BUILT_MAP_THRESHOLD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldGenerate(long seed, int salt, int sourceX, int sourceZ, float probability) Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
-
LEGACY_TYPE_1
-
LEGACY_TYPE_2
-
LEGACY_TYPE_3
-
-
Field Details
-
CODEC
public static final com.mojang.serialization.Codec<AbstractSpreadingStructurePlacement.FrequencyReductionMethod> CODEC -
name
-
reducer
-
-
Constructor Details
-
FrequencyReductionMethod
private FrequencyReductionMethod(String name, AbstractSpreadingStructurePlacement.FrequencyReducer reducer)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
shouldGenerate
public boolean shouldGenerate(long seed, int salt, int sourceX, int sourceZ, float probability) -
getSerializedName
- Specified by:
getSerializedNamein interfaceStringRepresentable
-