Package net.minecraft.structure
Class PoolStructurePiece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.PoolStructurePiece
public class PoolStructurePiece extends StructurePiece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer
-
Field Summary
Fields Modifier and Type Field Description private static Logger
field_24991
private int
groundLevelDelta
private List<JigsawJunction>
junctions
protected StructurePoolElement
poolElement
protected BlockPos
pos
protected BlockRotation
rotation
private StructureManager
structureManager
Fields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength
-
Constructor Summary
Constructors Constructor Description PoolStructurePiece(StructureManager manager, CompoundTag tag)
PoolStructurePiece(StructureManager structureManager, StructurePoolElement structurePoolElement, BlockPos blockPos, int int2, BlockRotation blockRotation, BlockBox blockBox)
-
Method Summary
Modifier and Type Method Description void
addJunction(JigsawJunction junction)
boolean
generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
int
getGroundLevelDelta()
List<JigsawJunction>
getJunctions()
StructurePoolElement
getPoolElement()
BlockPos
getPos()
BlockRotation
getRotation()
boolean
method_27236(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox blockBox, BlockPos blockPos, boolean keepJigsaws)
protected void
toNbt(CompoundTag tag)
String
toString()
void
translate(int x, int y, int z)
Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, fill, fillDownwards, fillHalfEllipsoid, fillOpenings, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, getBlockAt, getBoundingBox, getChainLength, getFacing, getOverlappingPiece, getTag, getType, intersectsChunk, isTouchingLiquid, isUnderSeaLevel, orientateChest, setOrientation
-
Field Details
-
field_24991
-
poolElement
-
pos
-
groundLevelDelta
private final int groundLevelDelta -
rotation
-
junctions
-
structureManager
-
-
Constructor Details
-
PoolStructurePiece
public PoolStructurePiece(StructureManager structureManager, StructurePoolElement structurePoolElement, BlockPos blockPos, int int2, BlockRotation blockRotation, BlockBox blockBox) -
PoolStructurePiece
-
-
Method Details
-
toNbt
- Specified by:
toNbt
in classStructurePiece
-
generate
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)- Specified by:
generate
in classStructurePiece
-
method_27236
public boolean method_27236(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox blockBox, BlockPos blockPos, boolean keepJigsaws) -
translate
public void translate(int x, int y, int z)- Overrides:
translate
in classStructurePiece
-
getRotation
- Overrides:
getRotation
in classStructurePiece
-
toString
-
getPoolElement
-
getPos
-
getGroundLevelDelta
public int getGroundLevelDelta() -
addJunction
-
getJunctions
-