Class PoolElementStructurePiece
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.PoolElementStructurePiece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StructurePoolElementprivate final intprivate final List<JigsawJunction> private final LiquidSettingsprivate static final org.slf4j.Loggerprotected BlockPosprotected final Rotationprivate final StructureTemplateManagerFields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth -
Constructor Summary
ConstructorsConstructorDescriptionPoolElementStructurePiece(StructureTemplateManager structureTemplateManager, StructurePoolElement element, BlockPos position, int groundLevelDelta, Rotation rotation, BoundingBox boundingBox, LiquidSettings liquidSettings) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidaddJunction(JigsawJunction junction) intvoidmove(int x, int y, int z) voidplace(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, BlockPos pos, boolean keepJigsaws) voidpostProcess(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) toString()Methods inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
addChildren, canBeReplaced, createBoundingBox, createChest, createChest, createDispenser, createTag, fillColumnDown, findCollisionPiece, generateAirBox, generateBox, generateBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getLocatorPosition, getMirror, getOrientation, getRandomHorizontalDirection, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, placeBlock, reorient, setGenDepth, setOrientation
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
element
-
position
-
groundLevelDelta
private final int groundLevelDelta -
rotation
-
junctions
-
structureTemplateManager
-
liquidSettings
-
-
Constructor Details
-
PoolElementStructurePiece
public PoolElementStructurePiece(StructureTemplateManager structureTemplateManager, StructurePoolElement element, BlockPos position, int groundLevelDelta, Rotation rotation, BoundingBox boundingBox, LiquidSettings liquidSettings) -
PoolElementStructurePiece
-
-
Method Details
-
addAdditionalSaveData
- Specified by:
addAdditionalSaveDatain classStructurePiece
-
postProcess
public void postProcess(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) - Specified by:
postProcessin classStructurePiece
-
place
public void place(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, BlockPos pos, boolean keepJigsaws) -
move
public void move(int x, int y, int z) - Overrides:
movein classStructurePiece
-
getRotation
- Overrides:
getRotationin classStructurePiece
-
toString
-
getElement
-
getPosition
-
getGroundLevelDelta
public int getGroundLevelDelta() -
addJunction
-
getJunctions
-