Class PlacementSettings
- java.lang.Object
-
- net.minecraft.world.gen.feature.template.PlacementSettings
-
public class PlacementSettings extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private MutableBoundingBox
boundingBox
private ChunkPos
chunkPos
private boolean
finalizeEntities
private boolean
ignoreEntities
private boolean
keepLiquids
private boolean
knownShape
private Mirror
mirror
private int
palette
private java.util.List<StructureProcessor>
processors
private java.util.Random
random
private Rotation
rotation
private BlockPos
rotationPivot
-
Constructor Summary
Constructors Constructor Description PlacementSettings()
-
Method Summary
-
-
-
Field Detail
-
mirror
private Mirror mirror
-
rotation
private Rotation rotation
-
rotationPivot
private BlockPos rotationPivot
-
ignoreEntities
private boolean ignoreEntities
-
chunkPos
@Nullable private ChunkPos chunkPos
-
boundingBox
@Nullable private MutableBoundingBox boundingBox
-
keepLiquids
private boolean keepLiquids
-
random
@Nullable private java.util.Random random
-
palette
@Nullable private int palette
-
processors
private final java.util.List<StructureProcessor> processors
-
knownShape
private boolean knownShape
-
finalizeEntities
private boolean finalizeEntities
-
-
Method Detail
-
copy
public PlacementSettings copy()
-
setMirror
public PlacementSettings setMirror(Mirror p_186214_1_)
-
setRotation
public PlacementSettings setRotation(Rotation p_186220_1_)
-
setRotationPivot
public PlacementSettings setRotationPivot(BlockPos p_207665_1_)
-
setIgnoreEntities
public PlacementSettings setIgnoreEntities(boolean p_186222_1_)
-
setChunkPos
public PlacementSettings setChunkPos(ChunkPos p_186218_1_)
-
setBoundingBox
public PlacementSettings setBoundingBox(MutableBoundingBox p_186223_1_)
-
setRandom
public PlacementSettings setRandom(@Nullable java.util.Random p_189950_1_)
-
setKnownShape
public PlacementSettings setKnownShape(boolean p_215223_1_)
-
clearProcessors
public PlacementSettings clearProcessors()
-
addProcessor
public PlacementSettings addProcessor(StructureProcessor p_215222_1_)
-
popProcessor
public PlacementSettings popProcessor(StructureProcessor p_215220_1_)
-
getMirror
public Mirror getMirror()
-
getRotation
public Rotation getRotation()
-
getRotationPivot
public BlockPos getRotationPivot()
-
getRandom
public java.util.Random getRandom(@Nullable BlockPos p_189947_1_)
-
isIgnoreEntities
public boolean isIgnoreEntities()
-
getBoundingBox
@Nullable public MutableBoundingBox getBoundingBox()
-
getKnownShape
public boolean getKnownShape()
-
getProcessors
public java.util.List<StructureProcessor> getProcessors()
-
updateBoundingBoxFromChunkPos
void updateBoundingBoxFromChunkPos()
-
shouldKeepLiquids
public boolean shouldKeepLiquids()
-
getRandomPalette
public Template.Palette getRandomPalette(java.util.List<Template.Palette> p_237132_1_, @Nullable BlockPos p_237132_2_)
-
calculateBoundingBox
@Nullable private MutableBoundingBox calculateBoundingBox(@Nullable ChunkPos p_186216_1_)
-
setFinalizeEntities
public PlacementSettings setFinalizeEntities(boolean p_237133_1_)
-
shouldFinalizeEntities
public boolean shouldFinalizeEntities()
-
-