public abstract class SimpleStructurePiece extends StructurePiece
StructurePiece.BlockRandomizer| Modifier and Type | Field and Description |
|---|---|
private static Logger |
LOGGER |
protected StructurePlacementData |
placementData |
protected BlockPos |
pos |
protected Structure |
structure |
AIR, boundingBox, chainLength| Constructor and Description |
|---|
SimpleStructurePiece(StructurePieceType type,
CompoundTag tag) |
SimpleStructurePiece(StructurePieceType type,
int length) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
generate(StructureWorldAccess structureWorldAccess,
StructureAccessor structureAccessor,
ChunkGenerator chunkGenerator,
Random random,
BlockBox boundingBox,
ChunkPos chunkPos,
BlockPos blockPos) |
BlockRotation |
getRotation() |
protected abstract void |
handleMetadata(String metadata,
BlockPos pos,
ServerWorldAccess serverWorldAccess,
Random random,
BlockBox boundingBox) |
protected void |
setStructureData(Structure structure,
BlockPos pos,
StructurePlacementData placementData) |
protected void |
toNbt(CompoundTag tag) |
void |
translate(int x,
int y,
int z) |
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, setOrientationprivate static final Logger LOGGER
protected Structure structure
protected StructurePlacementData placementData
protected BlockPos pos
public SimpleStructurePiece(StructurePieceType type, int length)
public SimpleStructurePiece(StructurePieceType type, CompoundTag tag)
protected void setStructureData(Structure structure, BlockPos pos, StructurePlacementData placementData)
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 StructurePieceprotected abstract void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess serverWorldAccess, Random random, BlockBox boundingBox)
public void translate(int x,
int y,
int z)
translate in class StructurePiecepublic BlockRotation getRotation()
getRotation in class StructurePiece