Enum Class StructurePlacement.FrequencyReductionMethod
java.lang.Object
java.lang.Enum<StructurePlacement.FrequencyReductionMethod>
net.minecraft.world.level.levelgen.structure.placement.StructurePlacement.FrequencyReductionMethod
- All Implemented Interfaces:
- Serializable,- Comparable<StructurePlacement.FrequencyReductionMethod>,- Constable,- StringRepresentable
- Enclosing class:
- StructurePlacement
public static enum StructurePlacement.FrequencyReductionMethod
extends Enum<StructurePlacement.FrequencyReductionMethod>
implements StringRepresentable
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentableStringRepresentable.EnumCodec<E extends Enum<E> & StringRepresentable>, StringRepresentable.StringRepresentableCodec<S extends StringRepresentable>
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StructurePlacement.FrequencyReductionMethod>private final Stringprivate final StructurePlacement.FrequencyReducerFields inherited from interface net.minecraft.util.StringRepresentablePRE_BUILT_MAP_THRESHOLD
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateFrequencyReductionMethod(String p_227116_, StructurePlacement.FrequencyReducer p_227117_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanshouldGenerate(long p_227120_, int p_227121_, int p_227122_, int p_227123_, float p_227124_) 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- 
CODECpublic static final com.mojang.serialization.Codec<StructurePlacement.FrequencyReductionMethod> CODEC
- 
name
- 
reducer
 
- 
- 
Constructor Details- 
FrequencyReductionMethod
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
shouldGeneratepublic boolean shouldGenerate(long p_227120_, int p_227121_, int p_227122_, int p_227123_, float p_227124_) 
- 
getSerializedName- Specified by:
- getSerializedNamein interface- StringRepresentable
 
 
-