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 StructurePoolElement
private int
private List<JigsawJunction>
private static org.apache.logging.log4j.Logger
protected BlockPos
protected Rotation
private StructureManager
Fields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
Constructor Summary
ConstructorDescriptionPoolElementStructurePiece(ServerLevel p_163118_, CompoundTag p_163119_)
PoolElementStructurePiece(StructureManager p_72606_, StructurePoolElement p_72607_, BlockPos p_72608_, int p_72609_, Rotation p_72610_, BoundingBox p_72611_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData(ServerLevel p_163121_, CompoundTag p_163122_)
void
addJunction(JigsawJunction p_72636_)
int
void
move(int p_72616_, int p_72617_, int p_72618_)
boolean
place(WorldGenLevel p_72628_, StructureFeatureManager p_72629_, ChunkGenerator p_72630_, Random p_72631_, BoundingBox p_72632_, BlockPos p_72633_, boolean p_72634_)
boolean
postProcess(WorldGenLevel p_72620_, StructureFeatureManager p_72621_, ChunkGenerator p_72622_, Random p_72623_, BoundingBox p_72624_, ChunkPos p_72625_, BlockPos p_72626_)
toString()
Methods inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
addChildren, canBeReplaced, createChest, createChest, createDispenser, createTag, fillColumnDown, generateAirBox, generateBox, generateBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getLocatorPosition, getMirror, getNoiseEffect, getOrientation, getRandomHorizontalDirection, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, placeBlock, reorient, setOrientation
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
element
-
position
-
groundLevelDelta
private final int groundLevelDelta -
rotation
-
junctions
-
structureManager
-
-
Constructor Details
-
PoolElementStructurePiece
public PoolElementStructurePiece(StructureManager p_72606_, StructurePoolElement p_72607_, BlockPos p_72608_, int p_72609_, Rotation p_72610_, BoundingBox p_72611_) -
PoolElementStructurePiece
-
-
Method Details
-
addAdditionalSaveData
- Specified by:
addAdditionalSaveData
in classStructurePiece
-
postProcess
public boolean postProcess(WorldGenLevel p_72620_, StructureFeatureManager p_72621_, ChunkGenerator p_72622_, Random p_72623_, BoundingBox p_72624_, ChunkPos p_72625_, BlockPos p_72626_)- Specified by:
postProcess
in classStructurePiece
-
place
public boolean place(WorldGenLevel p_72628_, StructureFeatureManager p_72629_, ChunkGenerator p_72630_, Random p_72631_, BoundingBox p_72632_, BlockPos p_72633_, boolean p_72634_) -
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
-