Class StructurePlacement

java.lang.Object
net.minecraft.world.gen.chunk.placement.StructurePlacement
Direct Known Subclasses:
ConcentricRingsStructurePlacement, RandomSpreadStructurePlacement

public abstract class StructurePlacement extends Object
Mappings:
Namespace Name
official dlb
intermediary net/minecraft/class_6874
named net/minecraft/world/gen/chunk/placement/StructurePlacement
  • Field Details

    • TYPE_CODEC

      public static final com.mojang.serialization.Codec<StructurePlacement> TYPE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Ldlb;b:Lcom/mojang/serialization/Codec;
      intermediary field_36428 Lnet/minecraft/class_6874;field_36428:Lcom/mojang/serialization/Codec;
      named TYPE_CODEC Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;TYPE_CODEC:Lcom/mojang/serialization/Codec;
    • field_37775

      private static final int field_37775
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a:I
      intermediary field_37775 Lnet/minecraft/class_6874;field_37775:I
      named field_37775 Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;field_37775:I
    • locateOffset

      private final Vec3i locateOffset
      Mappings:
      Namespace Name Mixin selector
      official c Ldlb;c:Lhs;
      intermediary field_37776 Lnet/minecraft/class_6874;field_37776:Lnet/minecraft/class_2382;
      named locateOffset Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;locateOffset:Lnet/minecraft/util/math/Vec3i;
    • frequencyReductionMethod

      private final StructurePlacement.FrequencyReductionMethod frequencyReductionMethod
      Mappings:
      Namespace Name Mixin selector
      official d Ldlb;d:Ldlb$c;
      intermediary field_37777 Lnet/minecraft/class_6874;field_37777:Lnet/minecraft/class_6874$class_7154;
      named frequencyReductionMethod Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;frequencyReductionMethod:Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;
    • frequency

      private final float frequency
      Mappings:
      Namespace Name Mixin selector
      official e Ldlb;e:F
      intermediary field_37778 Lnet/minecraft/class_6874;field_37778:F
      named frequency Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;frequency:F
    • salt

      private final int salt
      Mappings:
      Namespace Name Mixin selector
      official f Ldlb;f:I
      intermediary field_37779 Lnet/minecraft/class_6874;field_37779:I
      named salt Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;salt:I
    • exclusionZone

      private final Optional<StructurePlacement.ExclusionZone> exclusionZone
      Mappings:
      Namespace Name Mixin selector
      official g Ldlb;g:Ljava/util/Optional;
      intermediary field_37780 Lnet/minecraft/class_6874;field_37780:Ljava/util/Optional;
      named exclusionZone Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;exclusionZone:Ljava/util/Optional;
  • Constructor Details

    • StructurePlacement

      protected StructurePlacement(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldlb;<init>(Lhs;Ldlb$c;FILjava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_6874;<init>(Lnet/minecraft/class_2382;Lnet/minecraft/class_6874$class_7154;FILjava/util/Optional;)V
      named <init> Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;<init>(Lnet/minecraft/util/math/Vec3i;Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;FILjava/util/Optional;)V
  • Method Details

    • method_41637

      protected static <S extends StructurePlacement> com.mojang.datafixers.Products.P5<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<S>,Vec3i,StructurePlacement.FrequencyReductionMethod,Float,Integer,Optional<StructurePlacement.ExclusionZone>> method_41637(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<S> instance)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P5;
      intermediary method_41637 Lnet/minecraft/class_6874;method_41637(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P5;
      named method_41637 Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;method_41637(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P5;
    • getLocateOffset

      protected Vec3i getLocateOffset()
      Mappings:
      Namespace Name Mixin selector
      official f Ldlb;f()Lhs;
      intermediary method_41642 Lnet/minecraft/class_6874;method_41642()Lnet/minecraft/class_2382;
      named getLocateOffset Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getLocateOffset()Lnet/minecraft/util/math/Vec3i;
    • getFrequencyReductionMethod

      protected StructurePlacement.FrequencyReductionMethod getFrequencyReductionMethod()
      Mappings:
      Namespace Name Mixin selector
      official g Ldlb;g()Ldlb$c;
      intermediary method_41643 Lnet/minecraft/class_6874;method_41643()Lnet/minecraft/class_6874$class_7154;
      named getFrequencyReductionMethod Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getFrequencyReductionMethod()Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;
    • getFrequency

      protected float getFrequency()
      Mappings:
      Namespace Name Mixin selector
      official h Ldlb;h()F
      intermediary method_41644 Lnet/minecraft/class_6874;method_41644()F
      named getFrequency Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getFrequency()F
    • getSalt

      protected int getSalt()
      Mappings:
      Namespace Name Mixin selector
      official i Ldlb;i()I
      intermediary method_41645 Lnet/minecraft/class_6874;method_41645()I
      named getSalt Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getSalt()I
    • getExclusionZone

      protected Optional<StructurePlacement.ExclusionZone> getExclusionZone()
      Mappings:
      Namespace Name Mixin selector
      official j Ldlb;j()Ljava/util/Optional;
      intermediary method_41646 Lnet/minecraft/class_6874;method_41646()Ljava/util/Optional;
      named getExclusionZone Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getExclusionZone()Ljava/util/Optional;
    • shouldGenerate

      public boolean shouldGenerate(ChunkGenerator chunkGenerator, NoiseConfig noiseConfig, long seed, int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official b Ldlb;b(Lcwn;Ldai;JII)Z
      intermediary method_41639 Lnet/minecraft/class_6874;method_41639(Lnet/minecraft/class_2794;Lnet/minecraft/class_7138;JII)Z
      named shouldGenerate Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;shouldGenerate(Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/gen/noise/NoiseConfig;JII)Z
    • isStartChunk

      protected abstract boolean isStartChunk(ChunkGenerator chunkGenerator, NoiseConfig noiseConfig, long seed, int x, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Lcwn;Ldai;JII)Z
      intermediary method_40168 Lnet/minecraft/class_6874;method_40168(Lnet/minecraft/class_2794;Lnet/minecraft/class_7138;JII)Z
      named isStartChunk Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;isStartChunk(Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/gen/noise/NoiseConfig;JII)Z
    • getLocatePos

      public BlockPos getLocatePos(ChunkPos chunkPos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(Lcfh;)Lgt;
      intermediary method_41636 Lnet/minecraft/class_6874;method_41636(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2338;
      named getLocatePos Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getLocatePos(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/BlockPos;
    • getType

      public abstract StructurePlacementType<?> getType()
      Mappings:
      Namespace Name Mixin selector
      official e Ldlb;e()Ldlc;
      intermediary method_40166 Lnet/minecraft/class_6874;method_40166()Lnet/minecraft/class_6875;
      named getType Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getType()Lnet/minecraft/world/gen/chunk/placement/StructurePlacementType;
    • defaultShouldGenerate

      private static boolean defaultShouldGenerate(long seed, int regionX, int regionZ, int salt, float frequency)
      Mappings:
      Namespace Name Mixin selector
      official a Ldlb;a(JIIIF)Z
      intermediary method_41635 Lnet/minecraft/class_6874;method_41635(JIIIF)Z
      named defaultShouldGenerate Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;defaultShouldGenerate(JIIIF)Z
    • legacyType3ShouldGenerate

      private static boolean legacyType3ShouldGenerate(long seed, int int2, int chunkX, int chunkZ, float frequency)
      Mappings:
      Namespace Name Mixin selector
      official b Ldlb;b(JIIIF)Z
      intermediary method_41638 Lnet/minecraft/class_6874;method_41638(JIIIF)Z
      named legacyType3ShouldGenerate Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;legacyType3ShouldGenerate(JIIIF)Z
    • legacyType2ShouldGenerate

      private static boolean legacyType2ShouldGenerate(long seed, int int2, int regionX, int regionZ, float frequency)
      Mappings:
      Namespace Name Mixin selector
      official c Ldlb;c(JIIIF)Z
      intermediary method_41640 Lnet/minecraft/class_6874;method_41640(JIIIF)Z
      named legacyType2ShouldGenerate Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;legacyType2ShouldGenerate(JIIIF)Z
    • legacyType1ShouldGenerate

      private static boolean legacyType1ShouldGenerate(long seed, int int2, int int3, int int4, float frequency)
      Mappings:
      Namespace Name Mixin selector
      official d Ldlb;d(JIIIF)Z
      intermediary method_41641 Lnet/minecraft/class_6874;method_41641(JIIIF)Z
      named legacyType1ShouldGenerate Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;legacyType1ShouldGenerate(JIIIF)Z