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
named net/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod
intermediary net/minecraft/class_6874$class_7154
official ejj$c
  • Enum Constant Details

    • DEFAULT

      public static final StructurePlacement.FrequencyReductionMethod DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;DEFAULT:Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;
      intermediary field_37782 Lnet/minecraft/class_6874$class_7154;field_37782:Lnet/minecraft/class_6874$class_7154;
      official a Lejj$c;a:Lejj$c;
    • LEGACY_TYPE_1

      public static final StructurePlacement.FrequencyReductionMethod LEGACY_TYPE_1
      Mappings:
      Namespace Name Mixin selector
      named LEGACY_TYPE_1 Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;LEGACY_TYPE_1:Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;
      intermediary field_37783 Lnet/minecraft/class_6874$class_7154;field_37783:Lnet/minecraft/class_6874$class_7154;
      official b Lejj$c;b:Lejj$c;
    • LEGACY_TYPE_2

      public static final StructurePlacement.FrequencyReductionMethod LEGACY_TYPE_2
      Mappings:
      Namespace Name Mixin selector
      named LEGACY_TYPE_2 Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;LEGACY_TYPE_2:Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;
      intermediary field_37784 Lnet/minecraft/class_6874$class_7154;field_37784:Lnet/minecraft/class_6874$class_7154;
      official c Lejj$c;c:Lejj$c;
    • LEGACY_TYPE_3

      public static final StructurePlacement.FrequencyReductionMethod LEGACY_TYPE_3
      Mappings:
      Namespace Name Mixin selector
      named LEGACY_TYPE_3 Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;LEGACY_TYPE_3:Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;
      intermediary field_37785 Lnet/minecraft/class_6874$class_7154;field_37785:Lnet/minecraft/class_6874$class_7154;
      official d Lejj$c;d:Lejj$c;
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<StructurePlacement.FrequencyReductionMethod> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_37786 Lnet/minecraft/class_6874$class_7154;field_37786:Lcom/mojang/serialization/Codec;
      official e Lejj$c;e:Lcom/mojang/serialization/Codec;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;name:Ljava/lang/String;
      intermediary field_37787 Lnet/minecraft/class_6874$class_7154;field_37787:Ljava/lang/String;
      official f Lejj$c;f:Ljava/lang/String;
    • generationPredicate

      private final StructurePlacement.GenerationPredicate generationPredicate
      Mappings:
      Namespace Name Mixin selector
      named generationPredicate Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;generationPredicate:Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$GenerationPredicate;
      intermediary field_37788 Lnet/minecraft/class_6874$class_7154;field_37788:Lnet/minecraft/class_6874$class_7153;
      official g Lejj$c;g:Lejj$b;
  • Constructor Details

    • FrequencyReductionMethod

      private FrequencyReductionMethod(String name, StructurePlacement.GenerationPredicate generationPredicate)
      Mappings:
      Namespace Name Mixin selector
      named <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
      intermediary <init> Lnet/minecraft/class_6874$class_7154;<init>(Ljava/lang/String;ILjava/lang/String;Lnet/minecraft/class_6874$class_7153;)V
      official <init> Lejj$c;<init>(Ljava/lang/String;ILjava/lang/String;Lejj$b;)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 name
      NullPointerException - if the argument is null
    • shouldGenerate

      public boolean shouldGenerate(long seed, int salt, int chunkX, int chunkZ, float chance)
      Mappings:
      Namespace Name Mixin selector
      named shouldGenerate Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;shouldGenerate(JIIIF)Z
      intermediary method_41650 Lnet/minecraft/class_6874$class_7154;method_41650(JIIIF)Z
      official a Lejj$c;a(JIIIF)Z
    • asString

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      Returns:
      the unique string representation of the enum, used for serialization
      Mappings:
      Namespace Name Mixin selector
      named asString Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
      intermediary method_15434 Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
      official c Lazu;c()Ljava/lang/String;