public static class BuriedTreasureGenerator.Piece extends StructurePiece
StructurePiece.BlockRandomizerAIR, boundingBox, chainLength| Constructor and Description |
|---|
Piece(BlockPos pos) |
Piece(StructureManager manager,
CompoundTag tag) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
generate(StructureWorldAccess structureWorldAccess,
StructureAccessor structureAccessor,
ChunkGenerator chunkGenerator,
Random random,
BlockBox boundingBox,
ChunkPos chunkPos,
BlockPos blockPos) |
private boolean |
isLiquid(BlockState state) |
protected void |
toNbt(CompoundTag tag) |
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, fill, fillDownwards, fillHalfEllipsoid, fillOpenings, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, getBlockAt, getBoundingBox, getChainLength, getFacing, getOverlappingPiece, getRotation, getTag, getType, intersectsChunk, isTouchingLiquid, isUnderSeaLevel, orientateChest, setOrientation, translatepublic Piece(BlockPos pos)
public Piece(StructureManager manager, CompoundTag tag)
protected void toNbt(CompoundTag tag)
toNbt in class StructurePiecepublic boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
generate in class StructurePieceprivate boolean isLiquid(BlockState state)