Package net.minecraft.structure
Class EndCityGenerator.Piece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.SimpleStructurePiece
net.minecraft.structure.EndCityGenerator.Piece
- Enclosing class:
- EndCityGenerator
public static class EndCityGenerator.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 booleanignoreAirprivate 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 manager, String template, BlockPos pos, BlockRotation rotation, boolean ignoreAir)Piece(StructureManager manager, CompoundTag tag) -
Method Summary
Modifier and Type Method Description protected voidhandleMetadata(String metadata, BlockPos pos, ServerWorldAccess serverWorldAccess, Random random, BlockBox boundingBox)private voidinitializeStructureData(StructureManager manager)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
-
ignoreAir
private final boolean ignoreAir
-
-
Constructor Details
-
Piece
public Piece(StructureManager manager, String template, BlockPos pos, BlockRotation rotation, boolean ignoreAir) -
Piece
-
-
Method Details
-
initializeStructureData
-
toNbt
- Overrides:
toNbtin classSimpleStructurePiece
-
handleMetadata
protected void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess serverWorldAccess, Random random, BlockBox boundingBox)- Specified by:
handleMetadatain classSimpleStructurePiece
-