public static class ShipwreckGenerator.Piece extends SimpleStructurePiece
StructurePiece.BlockRandomizer
Modifier and Type | Field and Description |
---|---|
private boolean |
grounded |
private BlockRotation |
rotation |
private Identifier |
template |
placementData, pos, structure
AIR, boundingBox, chainLength
Constructor and Description |
---|
Piece(StructureManager manager,
CompoundTag tag) |
Piece(StructureManager manager,
Identifier identifier,
BlockPos pos,
BlockRotation rotation,
boolean grounded) |
Modifier and Type | Method and Description |
---|---|
boolean |
generate(StructureWorldAccess structureWorldAccess,
StructureAccessor structureAccessor,
ChunkGenerator chunkGenerator,
Random random,
BlockBox boundingBox,
ChunkPos chunkPos,
BlockPos blockPos) |
protected void |
handleMetadata(String metadata,
BlockPos pos,
ServerWorldAccess serverWorldAccess,
Random random,
BlockBox boundingBox) |
private void |
initializeStructureData(StructureManager manager) |
protected void |
toNbt(CompoundTag tag) |
getRotation, setStructureData, translate
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
private final BlockRotation rotation
private final Identifier template
private final boolean grounded
public Piece(StructureManager manager, Identifier identifier, BlockPos pos, BlockRotation rotation, boolean grounded)
public Piece(StructureManager manager, CompoundTag tag)
protected void toNbt(CompoundTag tag)
toNbt
in class SimpleStructurePiece
private void initializeStructureData(StructureManager manager)
protected void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess serverWorldAccess, Random random, BlockBox boundingBox)
handleMetadata
in class SimpleStructurePiece
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
generate
in class SimpleStructurePiece