Class ConcentricRingsStructurePlacement
java.lang.Object
net.minecraft.world.level.levelgen.structure.placement.StructurePlacement
net.minecraft.world.level.levelgen.structure.placement.ConcentricRingsStructurePlacement
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.placement.StructurePlacement
StructurePlacement.ExclusionZone, StructurePlacement.FrequencyReducer, StructurePlacement.FrequencyReductionMethod
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ConcentricRingsStructurePlacement>
private final int
private final int
private final int
-
Constructor Summary
ConstructorDescriptionConcentricRingsStructurePlacement
(int p_226976_, int p_226977_, int p_226978_, HolderSet<Biome> p_226979_) ConcentricRingsStructurePlacement
(Vec3i p_226981_, StructurePlacement.FrequencyReductionMethod p_226982_, float p_226983_, int p_226984_, Optional<StructurePlacement.ExclusionZone> p_226985_, int p_226986_, int p_226987_, int p_226988_, HolderSet<Biome> p_226989_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.datafixers.Products.P9<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<ConcentricRingsStructurePlacement>,
Vec3i, StructurePlacement.FrequencyReductionMethod, Float, Integer, Optional<StructurePlacement.ExclusionZone>, Integer, Integer, Integer, HolderSet<Biome>> codec
(com.mojang.serialization.codecs.RecordCodecBuilder.Instance<ConcentricRingsStructurePlacement> p_226997_) int
count()
int
distance()
protected boolean
isPlacementChunk
(ChunkGeneratorStructureState p_256631_, int p_256202_, int p_255915_) int
spread()
type()
Methods inherited from class net.minecraft.world.level.levelgen.structure.placement.StructurePlacement
exclusionZone, frequency, frequencyReductionMethod, getLocatePos, isStructureChunk, locateOffset, placementCodec, salt
-
Field Details
-
CODEC
-
distance
private final int distance -
spread
private final int spread -
count
private final int count -
preferredBiomes
-
-
Constructor Details
-
ConcentricRingsStructurePlacement
public ConcentricRingsStructurePlacement(Vec3i p_226981_, StructurePlacement.FrequencyReductionMethod p_226982_, float p_226983_, int p_226984_, Optional<StructurePlacement.ExclusionZone> p_226985_, int p_226986_, int p_226987_, int p_226988_, HolderSet<Biome> p_226989_) -
ConcentricRingsStructurePlacement
-
-
Method Details
-
codec
private static com.mojang.datafixers.Products.P9<com.mojang.serialization.codecs.RecordCodecBuilder.Mu<ConcentricRingsStructurePlacement>,Vec3i, codecStructurePlacement.FrequencyReductionMethod, Float, Integer, Optional<StructurePlacement.ExclusionZone>, Integer, Integer, Integer, HolderSet<Biome>> (com.mojang.serialization.codecs.RecordCodecBuilder.Instance<ConcentricRingsStructurePlacement> p_226997_) -
distance
public int distance() -
spread
public int spread() -
count
public int count() -
preferredBiomes
-
isPlacementChunk
protected boolean isPlacementChunk(ChunkGeneratorStructureState p_256631_, int p_256202_, int p_255915_) - Specified by:
isPlacementChunk
in classStructurePlacement
-
type
- Specified by:
type
in classStructurePlacement
-