public static class WoodlandMansionGenerator.Piece extends SimpleStructurePiece
StructurePiece.BlockRandomizer
Modifier and Type | Field and Description |
---|---|
private BlockMirror |
mirror |
private BlockRotation |
rotation |
private String |
template |
placementData, pos, structure
AIR, boundingBox, chainLength
Constructor and Description |
---|
Piece(StructureManager structureManager,
CompoundTag compoundTag) |
Piece(StructureManager structureManager,
String string,
BlockPos blockPos,
BlockRotation blockRotation) |
Piece(StructureManager structureManager,
String string,
BlockPos blockPos,
BlockRotation blockRotation,
BlockMirror blockMirror) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleMetadata(String metadata,
BlockPos pos,
ServerWorldAccess serverWorldAccess,
Random random,
BlockBox boundingBox) |
private void |
setupPlacement(StructureManager structureManager) |
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 BlockMirror mirror
public Piece(StructureManager structureManager, String string, BlockPos blockPos, BlockRotation blockRotation)
public Piece(StructureManager structureManager, String string, BlockPos blockPos, BlockRotation blockRotation, BlockMirror blockMirror)
public Piece(StructureManager structureManager, CompoundTag compoundTag)
private void setupPlacement(StructureManager structureManager)
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