Package net.minecraft.structure
Class WoodlandMansionGenerator.Piece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.SimpleStructurePiece
net.minecraft.structure.WoodlandMansionGenerator.Piece
- Enclosing class:
- WoodlandMansionGenerator
public static class WoodlandMansionGenerator.Piece extends SimpleStructurePiece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer -
Field Summary
Fields Modifier and Type Field Description private BlockMirrormirrorprivate BlockRotationrotationprivate StringtemplateFields inherited from class net.minecraft.structure.SimpleStructurePiece
placementData, pos, structureFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
Constructors Constructor Description Piece(StructureManager structureManager, String string, BlockPos blockPos, BlockRotation blockRotation)Piece(StructureManager structureManager, String string, BlockPos blockPos, BlockRotation blockRotation, BlockMirror blockMirror)Piece(StructureManager structureManager, CompoundTag compoundTag) -
Method Summary
Modifier and Type Method Description protected voidhandleMetadata(String metadata, BlockPos pos, ServerWorldAccess serverWorldAccess, Random random, BlockBox boundingBox)private voidsetupPlacement(StructureManager structureManager)protected voidtoNbt(CompoundTag tag)Methods inherited from class net.minecraft.structure.SimpleStructurePiece
generate, getRotation, setStructureData, translateMethods inherited from class net.minecraft.structure.StructurePiece
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
-
Field Details
-
template
-
rotation
-
mirror
-
-
Constructor Details
-
Piece
public Piece(StructureManager structureManager, String string, BlockPos blockPos, BlockRotation blockRotation) -
Piece
public Piece(StructureManager structureManager, String string, BlockPos blockPos, BlockRotation blockRotation, BlockMirror blockMirror) -
Piece
-
-
Method Details
-
setupPlacement
-
toNbt
- Overrides:
toNbtin classSimpleStructurePiece
-
handleMetadata
protected void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess serverWorldAccess, Random random, BlockBox boundingBox)- Specified by:
handleMetadatain classSimpleStructurePiece
-