Class RandomSpreadStructurePlacement
java.lang.Object
net.minecraft.world.level.levelgen.structure.placement.StructurePlacement
net.minecraft.world.level.levelgen.structure.placement.RandomSpreadStructurePlacement
-
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<RandomSpreadStructurePlacement>
private final int
private final int
private final RandomSpreadType
-
Constructor Summary
ConstructorDescriptionRandomSpreadStructurePlacement
(int p_204980_, int p_204981_, RandomSpreadType p_204982_, int p_204983_) RandomSpreadStructurePlacement
(Vec3i p_227000_, StructurePlacement.FrequencyReductionMethod p_227001_, float p_227002_, int p_227003_, Optional<StructurePlacement.ExclusionZone> p_227004_, int p_227005_, int p_227006_, RandomSpreadType p_227007_) -
Method Summary
Modifier and TypeMethodDescriptiongetPotentialStructureChunk
(long p_227009_, int p_227010_, int p_227011_) protected boolean
isPlacementChunk
(ChunkGeneratorStructureState p_256267_, int p_256050_, int p_255975_) int
int
spacing()
type()
Methods inherited from class net.minecraft.world.level.levelgen.structure.placement.StructurePlacement
exclusionZone, frequency, frequencyReductionMethod, getLocatePos, isStructureChunk, locateOffset, placementCodec, salt
-
Field Details
-
CODEC
-
spacing
private final int spacing -
separation
private final int separation -
spreadType
-
-
Constructor Details
-
RandomSpreadStructurePlacement
public RandomSpreadStructurePlacement(Vec3i p_227000_, StructurePlacement.FrequencyReductionMethod p_227001_, float p_227002_, int p_227003_, Optional<StructurePlacement.ExclusionZone> p_227004_, int p_227005_, int p_227006_, RandomSpreadType p_227007_) -
RandomSpreadStructurePlacement
public RandomSpreadStructurePlacement(int p_204980_, int p_204981_, RandomSpreadType p_204982_, int p_204983_)
-
-
Method Details
-
spacing
public int spacing() -
separation
public int separation() -
spreadType
-
getPotentialStructureChunk
-
isPlacementChunk
protected boolean isPlacementChunk(ChunkGeneratorStructureState p_256267_, int p_256050_, int p_255975_) - Specified by:
isPlacementChunk
in classStructurePlacement
-
type
- Specified by:
type
in classStructurePlacement
-