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, structureAIR, 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, translateaddBlock, 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, setOrientationprivate 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 SimpleStructurePieceprivate void initializeStructureData(StructureManager manager)
protected void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess serverWorldAccess, Random random, BlockBox boundingBox)
handleMetadata in class SimpleStructurePiecepublic boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
generate in class SimpleStructurePiece