Class StructurePlacement
java.lang.Object
net.minecraft.world.gen.chunk.placement.StructurePlacement
- Direct Known Subclasses:
- ConcentricRingsStructurePlacement,- RandomSpreadStructurePlacement
- Mappings:
- Namespace - Name - named - net/minecraft/world/gen/chunk/placement/StructurePlacement- intermediary - net/minecraft/class_6874- official - eok
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final recordDeprecated.static enumstatic interface
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate final Optional<StructurePlacement.ExclusionZone> private final floatprivate final StructurePlacement.FrequencyReductionMethodprivate final Vec3iprivate final intstatic final com.mojang.serialization.Codec<StructurePlacement> 
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedStructurePlacement(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanapplyExclusionZone(StructurePlacementCalculator calculator, int centerChunkX, int centerChunkZ) booleanapplyFrequencyReduction(int chunkX, int chunkZ, long seed) 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>> buildCodec(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<S> instance) private static booleandefaultShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency) protected Optional<StructurePlacement.ExclusionZone> protected floatprotected Vec3igetLocatePos(ChunkPos chunkPos) protected intgetSalt()abstract StructurePlacementType<?> getType()protected abstract booleanisStartChunk(StructurePlacementCalculator calculator, int chunkX, int chunkZ) private static booleanlegacyType1ShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency) private static booleanlegacyType2ShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency) private static booleanlegacyType3ShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency) booleanshouldGenerate(StructurePlacementCalculator calculator, int chunkX, int chunkZ) 
- 
Field Details- 
TYPE_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - TYPE_CODEC- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;TYPE_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_36428- Lnet/minecraft/class_6874;field_36428:Lcom/mojang/serialization/Codec;- official - b- Leok;b:Lcom/mojang/serialization/Codec;
 
- 
ARBITRARY_SALTprivate static final int ARBITRARY_SALT- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - ARBITRARY_SALT- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;ARBITRARY_SALT:I- intermediary - field_37775- Lnet/minecraft/class_6874;field_37775:I- official - a- Leok;a:I
 
- 
locateOffset- Mappings:
- Namespace - Name - Mixin selector - named - locateOffset- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;locateOffset:Lnet/minecraft/util/math/Vec3i;- intermediary - field_37776- Lnet/minecraft/class_6874;field_37776:Lnet/minecraft/class_2382;- official - c- Leok;c:Lkm;
 
- 
frequencyReductionMethod- Mappings:
- Namespace - Name - Mixin selector - named - frequencyReductionMethod- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;frequencyReductionMethod:Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;- intermediary - field_37777- Lnet/minecraft/class_6874;field_37777:Lnet/minecraft/class_6874$class_7154;- official - d- Leok;d:Leok$c;
 
- 
frequencyprivate final float frequency- Mappings:
- Namespace - Name - Mixin selector - named - frequency- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;frequency:F- intermediary - field_37778- Lnet/minecraft/class_6874;field_37778:F- official - e- Leok;e:F
 
- 
saltprivate final int salt- Mappings:
- Namespace - Name - Mixin selector - named - salt- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;salt:I- intermediary - field_37779- Lnet/minecraft/class_6874;field_37779:I- official - f- Leok;f:I
 
- 
exclusionZone- Mappings:
- Namespace - Name - Mixin selector - named - exclusionZone- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;exclusionZone:Ljava/util/Optional;- intermediary - field_37780- Lnet/minecraft/class_6874;field_37780:Ljava/util/Optional;- official - g- Leok;g:Ljava/util/Optional;
 
 
- 
- 
Constructor Details- 
StructurePlacementprotected StructurePlacement(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone) - Mappings:
- Namespace - Name - Mixin selector - 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- intermediary - <init>- Lnet/minecraft/class_6874;<init>(Lnet/minecraft/class_2382;Lnet/minecraft/class_6874$class_7154;FILjava/util/Optional;)V- official - <init>- Leok;<init>(Lkm;Leok$c;FILjava/util/Optional;)V
 
 
- 
- 
Method Details- 
buildCodecprotected static <S extends StructurePlacement> com.mojang.datafixers.Products.P5<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<S>,Vec3i, buildCodecStructurePlacement.FrequencyReductionMethod, Float, Integer, Optional<StructurePlacement.ExclusionZone>> (com.mojang.serialization.codecs.RecordCodecBuilder.Instance<S> instance) - Mappings:
- Namespace - Name - Mixin selector - named - buildCodec- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;buildCodec(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;- official - a- Leok;a(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P5;
 
- 
getLocateOffset- Mappings:
- Namespace - Name - Mixin selector - named - getLocateOffset- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getLocateOffset()Lnet/minecraft/util/math/Vec3i;- intermediary - method_41642- Lnet/minecraft/class_6874;method_41642()Lnet/minecraft/class_2382;- official - f- Leok;f()Lkm;
 
- 
getFrequencyReductionMethod- Mappings:
- Namespace - Name - Mixin selector - named - getFrequencyReductionMethod- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getFrequencyReductionMethod()Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;- intermediary - method_41643- Lnet/minecraft/class_6874;method_41643()Lnet/minecraft/class_6874$class_7154;- official - g- Leok;g()Leok$c;
 
- 
getFrequencyprotected float getFrequency()- Mappings:
- Namespace - Name - Mixin selector - named - getFrequency- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getFrequency()F- intermediary - method_41644- Lnet/minecraft/class_6874;method_41644()F- official - h- Leok;h()F
 
- 
getSaltprotected int getSalt()- Mappings:
- Namespace - Name - Mixin selector - named - getSalt- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getSalt()I- intermediary - method_41645- Lnet/minecraft/class_6874;method_41645()I- official - i- Leok;i()I
 
- 
getExclusionZone- Mappings:
- Namespace - Name - Mixin selector - named - getExclusionZone- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getExclusionZone()Ljava/util/Optional;- intermediary - method_41646- Lnet/minecraft/class_6874;method_41646()Ljava/util/Optional;- official - j- Leok;j()Ljava/util/Optional;
 
- 
shouldGenerate- Mappings:
- Namespace - Name - Mixin selector - named - shouldGenerate- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;shouldGenerate(Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;II)Z- intermediary - method_41639- Lnet/minecraft/class_6874;method_41639(Lnet/minecraft/class_7869;II)Z- official - b- Leok;b(Ldyv;II)Z
 
- 
applyFrequencyReductionpublic boolean applyFrequencyReduction(int chunkX, int chunkZ, long seed) - Mappings:
- Namespace - Name - Mixin selector - named - applyFrequencyReduction- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;applyFrequencyReduction(IIJ)Z- intermediary - method_56575- Lnet/minecraft/class_6874;method_56575(IIJ)Z- official - a- Leok;a(IIJ)Z
 
- 
applyExclusionZonepublic boolean applyExclusionZone(StructurePlacementCalculator calculator, int centerChunkX, int centerChunkZ) - Mappings:
- Namespace - Name - Mixin selector - named - applyExclusionZone- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;applyExclusionZone(Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;II)Z- intermediary - method_56576- Lnet/minecraft/class_6874;method_56576(Lnet/minecraft/class_7869;II)Z- official - c- Leok;c(Ldyv;II)Z
 
- 
isStartChunkprotected abstract boolean isStartChunk(StructurePlacementCalculator calculator, int chunkX, int chunkZ) - Mappings:
- Namespace - Name - Mixin selector - named - isStartChunk- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;isStartChunk(Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;II)Z- intermediary - method_40168- Lnet/minecraft/class_6874;method_40168(Lnet/minecraft/class_7869;II)Z- official - a- Leok;a(Ldyv;II)Z
 
- 
getLocatePos- Mappings:
- Namespace - Name - Mixin selector - named - getLocatePos- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getLocatePos(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/BlockPos;- intermediary - method_41636- Lnet/minecraft/class_6874;method_41636(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2338;- official - a- Leok;a(Ldfp;)Lji;
 
- 
getType- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;getType()Lnet/minecraft/world/gen/chunk/placement/StructurePlacementType;- intermediary - method_40166- Lnet/minecraft/class_6874;method_40166()Lnet/minecraft/class_6875;- official - e- Leok;e()Leol;
 
- 
defaultShouldGenerateprivate static boolean defaultShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency) - Mappings:
- Namespace - Name - Mixin selector - named - defaultShouldGenerate- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;defaultShouldGenerate(JIIIF)Z- intermediary - method_41635- Lnet/minecraft/class_6874;method_41635(JIIIF)Z- official - a- Leok;a(JIIIF)Z
 
- 
legacyType3ShouldGenerateprivate static boolean legacyType3ShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency) - Mappings:
- Namespace - Name - Mixin selector - named - legacyType3ShouldGenerate- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;legacyType3ShouldGenerate(JIIIF)Z- intermediary - method_41638- Lnet/minecraft/class_6874;method_41638(JIIIF)Z- official - b- Leok;b(JIIIF)Z
 
- 
legacyType2ShouldGenerateprivate static boolean legacyType2ShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency) - Mappings:
- Namespace - Name - Mixin selector - named - legacyType2ShouldGenerate- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;legacyType2ShouldGenerate(JIIIF)Z- intermediary - method_41640- Lnet/minecraft/class_6874;method_41640(JIIIF)Z- official - c- Leok;c(JIIIF)Z
 
- 
legacyType1ShouldGenerateprivate static boolean legacyType1ShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency) - Mappings:
- Namespace - Name - Mixin selector - named - legacyType1ShouldGenerate- Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;legacyType1ShouldGenerate(JIIIF)Z- intermediary - method_41641- Lnet/minecraft/class_6874;method_41641(JIIIF)Z- official - d- Leok;d(JIIIF)Z
 
 
-