public abstract class PoolStructurePiece extends StructurePiece
StructurePiece.BlockRandomizer| Modifier and Type | Field and Description |
|---|---|
private int |
groundLevelDelta |
private List<JigsawJunction> |
junctions |
protected StructurePoolElement |
poolElement |
protected BlockPos |
pos |
protected BlockRotation |
rotation |
private StructureManager |
structureManager |
AIR, boundingBox, length| Constructor and Description |
|---|
PoolStructurePiece(StructureManager manager,
CompoundTag tag,
StructurePieceType type) |
PoolStructurePiece(StructurePieceType type,
StructureManager manager,
StructurePoolElement poolElement,
BlockPos pos,
int groundLevelDelta,
BlockRotation rotation,
BlockBox boundingBox) |
| Modifier and Type | Method and Description |
|---|---|
void |
addJunction(JigsawJunction junction) |
boolean |
generate(IWorld world,
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(IWorld iWorld,
StructureAccessor structureAccessor,
ChunkGenerator<?> chunkGenerator,
Random random,
BlockBox blockBox,
BlockPos blockPos,
boolean bool) |
protected void |
toNbt(CompoundTag tag) |
String |
toString() |
void |
translate(int x,
int y,
int z) |
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, fill, fillWithOutline, fillWithOutline, fillWithOutlineUnderSealevel, getBlockAt, getBoundingBox, getFacing, getLength, getOverlappingPiece, getTag, getType, intersectsChunk, isUnderSeaLevel, method_14916, method_14919, method_14936, method_14937, placeJigsaw, setOrientationprotected final StructurePoolElement poolElement
protected BlockPos pos
private final int groundLevelDelta
protected final BlockRotation rotation
private final List<JigsawJunction> junctions
private final StructureManager structureManager
public PoolStructurePiece(StructurePieceType type, StructureManager manager, StructurePoolElement poolElement, BlockPos pos, int groundLevelDelta, BlockRotation rotation, BlockBox boundingBox)
public PoolStructurePiece(StructureManager manager, CompoundTag tag, StructurePieceType type)
protected void toNbt(CompoundTag tag)
toNbt in class StructurePiecepublic boolean generate(IWorld world, StructureAccessor structureAccessor, ChunkGenerator<?> chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
generate in class StructurePiecepublic boolean method_27236(IWorld iWorld, StructureAccessor structureAccessor, ChunkGenerator<?> chunkGenerator, Random random, BlockBox blockBox, BlockPos blockPos, boolean bool)
public void translate(int x,
int y,
int z)
translate in class StructurePiecepublic BlockRotation getRotation()
getRotation in class StructurePiecepublic StructurePoolElement getPoolElement()
public BlockPos getPos()
public int getGroundLevelDelta()
public void addJunction(JigsawJunction junction)
public List<JigsawJunction> getJunctions()