Class PlacementSettings
java.lang.Object
net.minecraft.world.gen.feature.template.PlacementSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MutableBoundingBoxprivate ChunkPosprivate booleanprivate booleanprivate booleanprivate booleanprivate Mirrorprivate intprivate final List<StructureProcessor>private Randomprivate Rotationprivate BlockPos -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProcessor(StructureProcessor p_215222_1_) private MutableBoundingBoxcalculateBoundingBox(ChunkPos p_186216_1_) copy()booleangetRandomPalette(List<Template.Palette> p_237132_1_, BlockPos p_237132_2_) booleanpopProcessor(StructureProcessor p_215220_1_) setBoundingBox(MutableBoundingBox p_186223_1_) setChunkPos(ChunkPos p_186218_1_) setFinalizeEntities(boolean p_237133_1_) setIgnoreEntities(boolean p_186222_1_) setKnownShape(boolean p_215223_1_) setRotation(Rotation p_186220_1_) setRotationPivot(BlockPos p_207665_1_) booleanboolean(package private) void
-
Field Details
-
mirror
-
rotation
-
rotationPivot
-
ignoreEntities
private boolean ignoreEntities -
chunkPos
-
boundingBox
-
keepLiquids
private boolean keepLiquids -
random
-
palette
@Nullable private int palette -
processors
-
knownShape
private boolean knownShape -
finalizeEntities
private boolean finalizeEntities
-
-
Constructor Details
-
PlacementSettings
public PlacementSettings()
-
-
Method Details
-
copy
-
setMirror
-
setRotation
-
setRotationPivot
-
setIgnoreEntities
-
setChunkPos
-
setBoundingBox
-
setRandom
-
setKnownShape
-
clearProcessors
-
addProcessor
-
popProcessor
-
getMirror
-
getRotation
-
getRotationPivot
-
getRandom
-
isIgnoreEntities
public boolean isIgnoreEntities() -
getBoundingBox
-
getKnownShape
public boolean getKnownShape() -
getProcessors
-
updateBoundingBoxFromChunkPos
void updateBoundingBoxFromChunkPos() -
shouldKeepLiquids
public boolean shouldKeepLiquids() -
getRandomPalette
public Template.Palette getRandomPalette(List<Template.Palette> p_237132_1_, @Nullable BlockPos p_237132_2_) -
calculateBoundingBox
-
setFinalizeEntities
-
shouldFinalizeEntities
public boolean shouldFinalizeEntities()
-