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 static final org.slf4j.Logger
protected BlockPos
protected final Rotation
private final StructureManager
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
(StructureManager p_209910_, StructurePoolElement p_209911_, BlockPos p_209912_, int p_209913_, Rotation p_209914_, BoundingBox p_209915_) -
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_192417_, StructureFeatureManager p_192418_, ChunkGenerator p_192419_, Random p_192420_, BoundingBox p_192421_, BlockPos p_192422_, boolean p_192423_) void
postProcess
(WorldGenLevel p_192409_, StructureFeatureManager p_192410_, ChunkGenerator p_192411_, Random p_192412_, BoundingBox p_192413_, ChunkPos p_192414_, BlockPos p_192415_) 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, getNoiseEffect, getOrientation, getRandomHorizontalDirection, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, placeBlock, reorient, setOrientation
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
element
-
position
-
groundLevelDelta
private final int groundLevelDelta -
rotation
-
junctions
-
structureManager
-
-
Constructor Details
-
PoolElementStructurePiece
public PoolElementStructurePiece(StructureManager p_209910_, StructurePoolElement p_209911_, BlockPos p_209912_, int p_209913_, Rotation p_209914_, BoundingBox p_209915_) -
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_192409_, StructureFeatureManager p_192410_, ChunkGenerator p_192411_, Random p_192412_, BoundingBox p_192413_, ChunkPos p_192414_, BlockPos p_192415_) - Specified by:
postProcess
in classStructurePiece
-
place
public void place(WorldGenLevel p_192417_, StructureFeatureManager p_192418_, ChunkGenerator p_192419_, Random p_192420_, BoundingBox p_192421_, BlockPos p_192422_, boolean p_192423_) -
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
-