Class StructurePlacement
java.lang.Object
net.minecraft.world.gen.chunk.placement.StructurePlacement
- Direct Known Subclasses:
ConcentricRingsStructurePlacement,RandomSpreadStructurePlacement
- Mappings:
Namespace Name official dkyintermediary net/minecraft/class_6874named net/minecraft/world/gen/chunk/placement/StructurePlacement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordDeprecated.static enumstatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<StructurePlacement.ExclusionZone>private static final intprivate 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 TypeMethodDescriptionprivate static booleandefaultShouldGenerate(long seed, int regionX, int regionZ, int salt, float frequency) protected Optional<StructurePlacement.ExclusionZone>protected floatprotected Vec3igetLocatePos(ChunkPos chunkPos) protected intgetSalt()abstract StructurePlacementType<?>getType()protected abstract booleanisStartChunk(ChunkGenerator chunkGenerator, NoiseConfig noiseConfig, long seed, int x, int z) private static booleanlegacyType1ShouldGenerate(long seed, int int2, int int3, int int4, float frequency) private static booleanlegacyType2ShouldGenerate(long seed, int int2, int regionX, int regionZ, float frequency) private static booleanlegacyType3ShouldGenerate(long seed, int int2, int chunkX, int chunkZ, float frequency) 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) booleanshouldGenerate(ChunkGenerator chunkGenerator, NoiseConfig noiseConfig, long seed, int x, int z)
-
Field Details
-
TYPE_CODEC
- Mappings:
Namespace Name Mixin selector official bLdky;b:Lcom/mojang/serialization/Codec;intermediary field_36428Lnet/minecraft/class_6874;field_36428:Lcom/mojang/serialization/Codec;named TYPE_CODECLnet/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 aLdky;a:Iintermediary field_37775Lnet/minecraft/class_6874;field_37775:Inamed field_37775Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;field_37775:I
-
locateOffset
- Mappings:
Namespace Name Mixin selector official cLdky;c:Lhs;intermediary field_37776Lnet/minecraft/class_6874;field_37776:Lnet/minecraft/class_2382;named locateOffsetLnet/minecraft/world/gen/chunk/placement/StructurePlacement;locateOffset:Lnet/minecraft/util/math/Vec3i;
-
frequencyReductionMethod
- Mappings:
Namespace Name Mixin selector official dLdky;d:Ldky$c;intermediary field_37777Lnet/minecraft/class_6874;field_37777:Lnet/minecraft/class_6874$class_7154;named frequencyReductionMethodLnet/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 eLdky;e:Fintermediary field_37778Lnet/minecraft/class_6874;field_37778:Fnamed frequencyLnet/minecraft/world/gen/chunk/placement/StructurePlacement;frequency:F
-
salt
private final int salt- Mappings:
Namespace Name Mixin selector official fLdky;f:Iintermediary field_37779Lnet/minecraft/class_6874;field_37779:Inamed saltLnet/minecraft/world/gen/chunk/placement/StructurePlacement;salt:I
-
exclusionZone
- Mappings:
Namespace Name Mixin selector official gLdky;g:Ljava/util/Optional;intermediary field_37780Lnet/minecraft/class_6874;field_37780:Ljava/util/Optional;named exclusionZoneLnet/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>Ldky;<init>(Lhs;Ldky$c;FILjava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_6874;<init>(Lnet/minecraft/class_2382;Lnet/minecraft/class_6874$class_7154;FILjava/util/Optional;)Vnamed <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, method_41637StructurePlacement.FrequencyReductionMethod, Float, Integer, Optional<StructurePlacement.ExclusionZone>> (com.mojang.serialization.codecs.RecordCodecBuilder.Instance<S> instance) - Mappings:
Namespace Name Mixin selector official aLdky;a(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;named method_41637Lnet/minecraft/world/gen/chunk/placement/StructurePlacement;method_41637(Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/Products$P5;
-
getLocateOffset
- Mappings:
Namespace Name Mixin selector official fLdky;f()Lhs;intermediary method_41642Lnet/minecraft/class_6874;method_41642()Lnet/minecraft/class_2382;named getLocateOffsetLnet/minecraft/world/gen/chunk/placement/StructurePlacement;getLocateOffset()Lnet/minecraft/util/math/Vec3i;
-
getFrequencyReductionMethod
- Mappings:
Namespace Name Mixin selector official gLdky;g()Ldky$c;intermediary method_41643Lnet/minecraft/class_6874;method_41643()Lnet/minecraft/class_6874$class_7154;named getFrequencyReductionMethodLnet/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 hLdky;h()Fintermediary method_41644Lnet/minecraft/class_6874;method_41644()Fnamed getFrequencyLnet/minecraft/world/gen/chunk/placement/StructurePlacement;getFrequency()F
-
getSalt
protected int getSalt()- Mappings:
Namespace Name Mixin selector official iLdky;i()Iintermediary method_41645Lnet/minecraft/class_6874;method_41645()Inamed getSaltLnet/minecraft/world/gen/chunk/placement/StructurePlacement;getSalt()I
-
getExclusionZone
- Mappings:
Namespace Name Mixin selector official jLdky;j()Ljava/util/Optional;intermediary method_41646Lnet/minecraft/class_6874;method_41646()Ljava/util/Optional;named getExclusionZoneLnet/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 bLdky;b(Lcwl;Ldaf;JII)Zintermediary method_41639Lnet/minecraft/class_6874;method_41639(Lnet/minecraft/class_2794;Lnet/minecraft/class_7138;JII)Znamed shouldGenerateLnet/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 aLdky;a(Lcwl;Ldaf;JII)Zintermediary method_40168Lnet/minecraft/class_6874;method_40168(Lnet/minecraft/class_2794;Lnet/minecraft/class_7138;JII)Znamed isStartChunkLnet/minecraft/world/gen/chunk/placement/StructurePlacement;isStartChunk(Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/gen/noise/NoiseConfig;JII)Z
-
getLocatePos
- Mappings:
Namespace Name Mixin selector official aLdky;a(Lcff;)Lgt;intermediary method_41636Lnet/minecraft/class_6874;method_41636(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2338;named getLocatePosLnet/minecraft/world/gen/chunk/placement/StructurePlacement;getLocatePos(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/BlockPos;
-
getType
- Mappings:
Namespace Name Mixin selector official eLdky;e()Ldkz;intermediary method_40166Lnet/minecraft/class_6874;method_40166()Lnet/minecraft/class_6875;named getTypeLnet/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 aLdky;a(JIIIF)Zintermediary method_41635Lnet/minecraft/class_6874;method_41635(JIIIF)Znamed defaultShouldGenerateLnet/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 bLdky;b(JIIIF)Zintermediary method_41638Lnet/minecraft/class_6874;method_41638(JIIIF)Znamed legacyType3ShouldGenerateLnet/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 cLdky;c(JIIIF)Zintermediary method_41640Lnet/minecraft/class_6874;method_41640(JIIIF)Znamed legacyType2ShouldGenerateLnet/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 dLdky;d(JIIIF)Zintermediary method_41641Lnet/minecraft/class_6874;method_41641(JIIIF)Znamed legacyType1ShouldGenerateLnet/minecraft/world/gen/chunk/placement/StructurePlacement;legacyType1ShouldGenerate(JIIIF)Z
-