Class RandomSpreadStructurePlacement
java.lang.Object
net.minecraft.world.level.levelgen.structure.placement.AbstractSpreadingStructurePlacement
net.minecraft.world.level.levelgen.structure.placement.RandomSpreadStructurePlacement
- All Implemented Interfaces:
StructurePlacement
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractSpreadingStructurePlacement
AbstractSpreadingStructurePlacement.ExclusionZone, AbstractSpreadingStructurePlacement.FrequencyReducer, AbstractSpreadingStructurePlacement.FrequencyReductionMethod -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<RandomSpreadStructurePlacement> private final intprivate final intprivate final RandomSpreadType -
Constructor Summary
ConstructorsConstructorDescriptionRandomSpreadStructurePlacement(int spacing, int separation, RandomSpreadType spreadType, int salt) RandomSpreadStructurePlacement(Vec3i locateOffset, AbstractSpreadingStructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<AbstractSpreadingStructurePlacement.ExclusionZone> exclusionZone, int spacing, int separation, RandomSpreadType spreadType) -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<RandomSpreadStructurePlacement> codec()getPotentialStructureChunk(long seed, int sourceX, int sourceZ) protected booleanisPlacementChunk(ChunkGeneratorStructureState state, int sourceX, int sourceZ) intintspacing()private static com.mojang.serialization.DataResult<RandomSpreadStructurePlacement> Methods inherited from class AbstractSpreadingStructurePlacement
applyAdditionalChunkRestrictions, applyInteractionsWithOtherStructures, exclusionZone, frequency, frequencyReductionMethod, isStructureChunk, locateOffset, placementCodec, saltMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface StructurePlacement
getLocatePos
-
Field Details
-
CODEC
-
spacing
private final int spacing -
separation
private final int separation -
spreadType
-
-
Constructor Details
-
RandomSpreadStructurePlacement
public RandomSpreadStructurePlacement(Vec3i locateOffset, AbstractSpreadingStructurePlacement.FrequencyReductionMethod frequencyReductionMethod, float frequency, int salt, Optional<AbstractSpreadingStructurePlacement.ExclusionZone> exclusionZone, int spacing, int separation, RandomSpreadType spreadType) -
RandomSpreadStructurePlacement
public RandomSpreadStructurePlacement(int spacing, int separation, RandomSpreadType spreadType, int salt)
-
-
Method Details
-
validate
private static com.mojang.serialization.DataResult<RandomSpreadStructurePlacement> validate(RandomSpreadStructurePlacement c) -
spacing
public int spacing() -
separation
public int separation() -
spreadType
-
getPotentialStructureChunk
-
isPlacementChunk
- Specified by:
isPlacementChunkin classAbstractSpreadingStructurePlacement
-
codec
- Specified by:
codecin interfaceStructurePlacement- Specified by:
codecin classAbstractSpreadingStructurePlacement
-