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/StructurePlacementintermediary net/minecraft/class_6874official eok
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordDeprecated.static enumstatic interface -
Field Summary
FieldsModifier 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 Summary
ConstructorsModifierConstructorDescriptionprotectedStructurePlacement(Vec3i locateOffset, StructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<StructurePlacement.ExclusionZone> exclusionZone) -
Method Summary
Modifier 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_CODECLnet/minecraft/world/gen/chunk/placement/StructurePlacement;TYPE_CODEC:Lcom/mojang/serialization/Codec;intermediary field_36428Lnet/minecraft/class_6874;field_36428:Lcom/mojang/serialization/Codec;official bLeok;b:Lcom/mojang/serialization/Codec;
-
ARBITRARY_SALT
private static final int ARBITRARY_SALT- See Also:
- Mappings:
Namespace Name Mixin selector named ARBITRARY_SALTLnet/minecraft/world/gen/chunk/placement/StructurePlacement;ARBITRARY_SALT:Iintermediary field_37775Lnet/minecraft/class_6874;field_37775:Iofficial aLeok;a:I
-
locateOffset
- Mappings:
Namespace Name Mixin selector named locateOffsetLnet/minecraft/world/gen/chunk/placement/StructurePlacement;locateOffset:Lnet/minecraft/util/math/Vec3i;intermediary field_37776Lnet/minecraft/class_6874;field_37776:Lnet/minecraft/class_2382;official cLeok;c:Lkm;
-
frequencyReductionMethod
- Mappings:
Namespace Name Mixin selector named frequencyReductionMethodLnet/minecraft/world/gen/chunk/placement/StructurePlacement;frequencyReductionMethod:Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;intermediary field_37777Lnet/minecraft/class_6874;field_37777:Lnet/minecraft/class_6874$class_7154;official dLeok;d:Leok$c;
-
frequency
private final float frequency- Mappings:
Namespace Name Mixin selector named frequencyLnet/minecraft/world/gen/chunk/placement/StructurePlacement;frequency:Fintermediary field_37778Lnet/minecraft/class_6874;field_37778:Fofficial eLeok;e:F
-
salt
private final int salt- Mappings:
Namespace Name Mixin selector named saltLnet/minecraft/world/gen/chunk/placement/StructurePlacement;salt:Iintermediary field_37779Lnet/minecraft/class_6874;field_37779:Iofficial fLeok;f:I
-
exclusionZone
- Mappings:
Namespace Name Mixin selector named exclusionZoneLnet/minecraft/world/gen/chunk/placement/StructurePlacement;exclusionZone:Ljava/util/Optional;intermediary field_37780Lnet/minecraft/class_6874;field_37780:Ljava/util/Optional;official gLeok;g: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 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;)Vintermediary <init>Lnet/minecraft/class_6874;<init>(Lnet/minecraft/class_2382;Lnet/minecraft/class_6874$class_7154;FILjava/util/Optional;)Vofficial <init>Leok;<init>(Lkm;Leok$c;FILjava/util/Optional;)V
-
-
Method Details
-
buildCodec
protected 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 buildCodecLnet/minecraft/world/gen/chunk/placement/StructurePlacement;buildCodec(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P5;intermediary method_41637Lnet/minecraft/class_6874;method_41637(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P5;official aLeok;a(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P5;
-
getLocateOffset
- Mappings:
Namespace Name Mixin selector named getLocateOffsetLnet/minecraft/world/gen/chunk/placement/StructurePlacement;getLocateOffset()Lnet/minecraft/util/math/Vec3i;intermediary method_41642Lnet/minecraft/class_6874;method_41642()Lnet/minecraft/class_2382;official fLeok;f()Lkm;
-
getFrequencyReductionMethod
- Mappings:
Namespace Name Mixin selector named getFrequencyReductionMethodLnet/minecraft/world/gen/chunk/placement/StructurePlacement;getFrequencyReductionMethod()Lnet/minecraft/world/gen/chunk/placement/StructurePlacement$FrequencyReductionMethod;intermediary method_41643Lnet/minecraft/class_6874;method_41643()Lnet/minecraft/class_6874$class_7154;official gLeok;g()Leok$c;
-
getFrequency
protected float getFrequency()- Mappings:
Namespace Name Mixin selector named getFrequencyLnet/minecraft/world/gen/chunk/placement/StructurePlacement;getFrequency()Fintermediary method_41644Lnet/minecraft/class_6874;method_41644()Fofficial hLeok;h()F
-
getSalt
protected int getSalt()- Mappings:
Namespace Name Mixin selector named getSaltLnet/minecraft/world/gen/chunk/placement/StructurePlacement;getSalt()Iintermediary method_41645Lnet/minecraft/class_6874;method_41645()Iofficial iLeok;i()I
-
getExclusionZone
- Mappings:
Namespace Name Mixin selector named getExclusionZoneLnet/minecraft/world/gen/chunk/placement/StructurePlacement;getExclusionZone()Ljava/util/Optional;intermediary method_41646Lnet/minecraft/class_6874;method_41646()Ljava/util/Optional;official jLeok;j()Ljava/util/Optional;
-
shouldGenerate
- Mappings:
Namespace Name Mixin selector named shouldGenerateLnet/minecraft/world/gen/chunk/placement/StructurePlacement;shouldGenerate(Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;II)Zintermediary method_41639Lnet/minecraft/class_6874;method_41639(Lnet/minecraft/class_7869;II)Zofficial bLeok;b(Ldyv;II)Z
-
applyFrequencyReduction
public boolean applyFrequencyReduction(int chunkX, int chunkZ, long seed) - Mappings:
Namespace Name Mixin selector named applyFrequencyReductionLnet/minecraft/world/gen/chunk/placement/StructurePlacement;applyFrequencyReduction(IIJ)Zintermediary method_56575Lnet/minecraft/class_6874;method_56575(IIJ)Zofficial aLeok;a(IIJ)Z
-
applyExclusionZone
public boolean applyExclusionZone(StructurePlacementCalculator calculator, int centerChunkX, int centerChunkZ) - Mappings:
Namespace Name Mixin selector named applyExclusionZoneLnet/minecraft/world/gen/chunk/placement/StructurePlacement;applyExclusionZone(Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;II)Zintermediary method_56576Lnet/minecraft/class_6874;method_56576(Lnet/minecraft/class_7869;II)Zofficial cLeok;c(Ldyv;II)Z
-
isStartChunk
protected abstract boolean isStartChunk(StructurePlacementCalculator calculator, int chunkX, int chunkZ) - Mappings:
Namespace Name Mixin selector named isStartChunkLnet/minecraft/world/gen/chunk/placement/StructurePlacement;isStartChunk(Lnet/minecraft/world/gen/chunk/placement/StructurePlacementCalculator;II)Zintermediary method_40168Lnet/minecraft/class_6874;method_40168(Lnet/minecraft/class_7869;II)Zofficial aLeok;a(Ldyv;II)Z
-
getLocatePos
- Mappings:
Namespace Name Mixin selector named getLocatePosLnet/minecraft/world/gen/chunk/placement/StructurePlacement;getLocatePos(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/BlockPos;intermediary method_41636Lnet/minecraft/class_6874;method_41636(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2338;official aLeok;a(Ldfp;)Lji;
-
getType
- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/world/gen/chunk/placement/StructurePlacement;getType()Lnet/minecraft/world/gen/chunk/placement/StructurePlacementType;intermediary method_40166Lnet/minecraft/class_6874;method_40166()Lnet/minecraft/class_6875;official eLeok;e()Leol;
-
defaultShouldGenerate
private static boolean defaultShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency) - Mappings:
Namespace Name Mixin selector named defaultShouldGenerateLnet/minecraft/world/gen/chunk/placement/StructurePlacement;defaultShouldGenerate(JIIIF)Zintermediary method_41635Lnet/minecraft/class_6874;method_41635(JIIIF)Zofficial aLeok;a(JIIIF)Z
-
legacyType3ShouldGenerate
private static boolean legacyType3ShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency) - Mappings:
Namespace Name Mixin selector named legacyType3ShouldGenerateLnet/minecraft/world/gen/chunk/placement/StructurePlacement;legacyType3ShouldGenerate(JIIIF)Zintermediary method_41638Lnet/minecraft/class_6874;method_41638(JIIIF)Zofficial bLeok;b(JIIIF)Z
-
legacyType2ShouldGenerate
private static boolean legacyType2ShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency) - Mappings:
Namespace Name Mixin selector named legacyType2ShouldGenerateLnet/minecraft/world/gen/chunk/placement/StructurePlacement;legacyType2ShouldGenerate(JIIIF)Zintermediary method_41640Lnet/minecraft/class_6874;method_41640(JIIIF)Zofficial cLeok;c(JIIIF)Z
-
legacyType1ShouldGenerate
private static boolean legacyType1ShouldGenerate(long seed, int salt, int chunkX, int chunkZ, float frequency) - Mappings:
Namespace Name Mixin selector named legacyType1ShouldGenerateLnet/minecraft/world/gen/chunk/placement/StructurePlacement;legacyType1ShouldGenerate(JIIIF)Zintermediary method_41641Lnet/minecraft/class_6874;method_41641(JIIIF)Zofficial dLeok;d(JIIIF)Z
-