public static class NetherFossilGenerator.Piece extends SimpleStructurePiece
StructurePiece.BlockRandomizer
Modifier and Type | Field and Description |
---|---|
private BlockRotation |
structureRotation |
private Identifier |
template |
placementData, pos, structure
AIR, boundingBox, chainLength
Constructor and Description |
---|
Piece(StructureManager manager,
CompoundTag tag) |
Piece(StructureManager manager,
Identifier template,
BlockPos pos,
BlockRotation rotation) |
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 Identifier template
private final BlockRotation structureRotation
public Piece(StructureManager manager, Identifier template, BlockPos pos, BlockRotation rotation)
public Piece(StructureManager manager, CompoundTag tag)
private void initializeStructureData(StructureManager manager)
protected void toNbt(CompoundTag tag)
toNbt
in class SimpleStructurePiece
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