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
Modifier and TypeFieldDescriptionprotected final StructurePoolElement
private final int
private final List
<JigsawJunction> private final LiquidSettings
private static final org.slf4j.Logger
protected BlockPos
protected final Rotation
private final StructureTemplateManager
Fields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
Constructor Summary
ConstructorDescriptionPoolElementStructurePiece
(StructurePieceSerializationContext p_192406_, CompoundTag p_192407_) PoolElementStructurePiece
(StructureTemplateManager p_226495_, StructurePoolElement p_226496_, BlockPos p_226497_, int p_226498_, Rotation p_226499_, BoundingBox p_226500_, LiquidSettings p_345422_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData
(StructurePieceSerializationContext p_192425_, CompoundTag p_192426_) void
addJunction
(JigsawJunction p_209917_) int
void
move
(int p_72616_, int p_72617_, int p_72618_) void
place
(WorldGenLevel p_226510_, StructureManager p_226511_, ChunkGenerator p_226512_, RandomSource p_226513_, BoundingBox p_226514_, BlockPos p_226515_, boolean p_226516_) void
postProcess
(WorldGenLevel p_226502_, StructureManager p_226503_, ChunkGenerator p_226504_, RandomSource p_226505_, BoundingBox p_226506_, ChunkPos p_226507_, BlockPos p_226508_) 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 p_226495_, StructurePoolElement p_226496_, BlockPos p_226497_, int p_226498_, Rotation p_226499_, BoundingBox p_226500_, LiquidSettings p_345422_) -
PoolElementStructurePiece
public PoolElementStructurePiece(StructurePieceSerializationContext p_192406_, CompoundTag p_192407_)
-
-
Method Details
-
addAdditionalSaveData
protected void addAdditionalSaveData(StructurePieceSerializationContext p_192425_, CompoundTag p_192426_) - Specified by:
addAdditionalSaveData
in classStructurePiece
-
postProcess
public void postProcess(WorldGenLevel p_226502_, StructureManager p_226503_, ChunkGenerator p_226504_, RandomSource p_226505_, BoundingBox p_226506_, ChunkPos p_226507_, BlockPos p_226508_) - Specified by:
postProcess
in classStructurePiece
-
place
public void place(WorldGenLevel p_226510_, StructureManager p_226511_, ChunkGenerator p_226512_, RandomSource p_226513_, BoundingBox p_226514_, BlockPos p_226515_, boolean p_226516_) -
move
public void move(int p_72616_, int p_72617_, int p_72618_) - Overrides:
move
in classStructurePiece
-
getRotation
- Overrides:
getRotation
in classStructurePiece
-
toString
-
getElement
-
getPosition
-
getGroundLevelDelta
public int getGroundLevelDelta() -
addJunction
-
getJunctions
-