public static class EndCityGenerator.Piece extends SimpleStructurePiece
StructurePiece.BlockRandomizer
Modifier and Type | Field and Description |
---|---|
private boolean |
ignoreAir |
private BlockRotation |
rotation |
private String |
template |
placementData, pos, structure
AIR, boundingBox, chainLength
Constructor and Description |
---|
Piece(StructureManager manager,
CompoundTag tag) |
Piece(StructureManager manager,
String template,
BlockPos pos,
BlockRotation rotation,
boolean ignoreAir) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleMetadata(String metadata,
BlockPos pos,
ServerWorldAccess serverWorldAccess,
Random random,
BlockBox boundingBox) |
private void |
initializeStructureData(StructureManager manager) |
protected void |
toNbt(CompoundTag tag) |
generate, 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 String template
private final BlockRotation rotation
private final boolean ignoreAir
public Piece(StructureManager manager, String template, BlockPos pos, BlockRotation rotation, boolean ignoreAir)
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