public static class BuriedTreasureGenerator.Piece extends StructurePiece
StructurePiece.BlockRandomizer
AIR, 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, translate
public Piece(BlockPos pos)
public Piece(StructureManager manager, CompoundTag tag)
protected void toNbt(CompoundTag tag)
toNbt
in class StructurePiece
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
generate
in class StructurePiece
private boolean isLiquid(BlockState state)