Enum Class StructurePlacement.FrequencyReductionMethod
java.lang.Object
java.lang.Enum<StructurePlacement.FrequencyReductionMethod>
net.minecraft.world.gen.chunk.placement.StructurePlacement.FrequencyReductionMethod
- All Implemented Interfaces:
Serializable,Comparable<StructurePlacement.FrequencyReductionMethod>,Constable,StringIdentifiable
- Enclosing class:
StructurePlacement
public static enum StructurePlacement.FrequencyReductionMethod
extends Enum<StructurePlacement.FrequencyReductionMethod>
implements StringIdentifiable
- Mappings:
Namespace Name official dhm$cintermediary net/minecraft/class_6874$class_7154named net/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StructurePlacement.FrequencyReductionMethod>private final StructurePlacement.GenerationPredicateprivate final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateFrequencyReductionMethod(String name, StructurePlacement.GenerationPredicate generationPredicate) -
Method Summary
Modifier and TypeMethodDescriptionasString()booleanshouldGenerate(long seed, int int2, int int3, int int4, float chance) 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
- Mappings:
Namespace Name Mixin selector official aLdhm$c;a:Ldhm$c;intermediary field_37782Lnet/minecraft/class_6874$class_7154;field_37782:Lnet/minecraft/class_6874$class_7154;named DEFAULTLnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;DEFAULT:Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;
-
LEGACY_TYPE_1
- Mappings:
Namespace Name Mixin selector official bLdhm$c;b:Ldhm$c;intermediary field_37783Lnet/minecraft/class_6874$class_7154;field_37783:Lnet/minecraft/class_6874$class_7154;named LEGACY_TYPE_1Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;LEGACY_TYPE_1:Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;
-
LEGACY_TYPE_2
- Mappings:
Namespace Name Mixin selector official cLdhm$c;c:Ldhm$c;intermediary field_37784Lnet/minecraft/class_6874$class_7154;field_37784:Lnet/minecraft/class_6874$class_7154;named LEGACY_TYPE_2Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;LEGACY_TYPE_2:Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;
-
LEGACY_TYPE_3
- Mappings:
Namespace Name Mixin selector official dLdhm$c;d:Ldhm$c;intermediary field_37785Lnet/minecraft/class_6874$class_7154;field_37785:Lnet/minecraft/class_6874$class_7154;named LEGACY_TYPE_3Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;LEGACY_TYPE_3:Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;
-
-
Field Details
-
CODEC
public static final com.mojang.serialization.Codec<StructurePlacement.FrequencyReductionMethod> CODEC- Mappings:
Namespace Name Mixin selector official eLdhm$c;e:Lcom/mojang/serialization/Codec;intermediary field_37786Lnet/minecraft/class_6874$class_7154;field_37786:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;CODEC:Lcom/mojang/serialization/Codec;
-
name
- Mappings:
Namespace Name Mixin selector official fLdhm$c;f:Ljava/lang/String;intermediary field_37787Lnet/minecraft/class_6874$class_7154;field_37787:Ljava/lang/String;named nameLnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;name:Ljava/lang/String;
-
generationPredicate
- Mappings:
Namespace Name Mixin selector official gLdhm$c;g:Ldhm$b;intermediary field_37788Lnet/minecraft/class_6874$class_7154;field_37788:Lnet/minecraft/class_6874$class_7153;named generationPredicateLnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;generationPredicate:Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$GenerationPredicate;
-
-
Constructor Details
-
FrequencyReductionMethod
private FrequencyReductionMethod(String name, StructurePlacement.GenerationPredicate generationPredicate) - Mappings:
Namespace Name Mixin selector official <init>Ldhm$c;<init>(Ljava/lang/String;ILjava/lang/String;Ldhm$b;)Vintermediary <init>Lnet/minecraft/class_6874$class_7154;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_6874$class_7153;)Vnamed <init>Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$GenerationPredicate;)V
-
-
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 int2, int int3, int int4, float chance) - Mappings:
Namespace Name Mixin selector official aLdhm$c;a(JIIIF)Zintermediary method_41650Lnet/minecraft/class_6874$class_7154;method_41650(JIIIF)Znamed shouldGenerateLnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;shouldGenerate(JIIIF)Z
-
get
- Mappings:
Namespace Name Mixin selector official aLdhm$c;a(Ljava/lang/String;)Ldhm$c;intermediary method_41651Lnet/minecraft/class_6874$class_7154;method_41651(Ljava/lang/String;)Lnet/minecraft/class_6874$class_7154;named getLnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;get(Ljava/lang/String;)Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;
-
asString
- Specified by:
asStringin interfaceStringIdentifiable- Mappings:
Namespace Name Mixin selector official cLaki;c()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-