Package net.minecraft.structure
Class SimpleStructurePiece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.SimpleStructurePiece
- Direct Known Subclasses:
EndCityGenerator.Piece,IglooGenerator.Piece,NetherFossilGenerator.Piece,OceanRuinGenerator.Piece,RuinedPortalStructurePiece,ShipwreckGenerator.Piece,WoodlandMansionGenerator.Piece
public abstract class SimpleStructurePiece extends StructurePiece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer -
Field Summary
Fields Modifier and Type Field Description private static LoggerLOGGERprotected StructurePlacementDataplacementDataprotected BlockPosposprotected StructurestructureFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
Constructors Constructor Description SimpleStructurePiece(StructurePieceType type, int length)SimpleStructurePiece(StructurePieceType type, NbtCompound nbt) -
Method Summary
Modifier and Type Method Description booleangenerate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos pos)BlockRotationgetRotation()protected abstract voidhandleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox)protected voidsetStructureData(Structure structure, BlockPos pos, StructurePlacementData placementData)protected voidtoNbt(NbtCompound tag)voidtranslate(int x, int y, int z)Methods 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
-
LOGGER
-
structure
-
placementData
-
pos
-
-
Constructor Details
-
SimpleStructurePiece
-
SimpleStructurePiece
-
-
Method Details
-
setStructureData
protected void setStructureData(Structure structure, BlockPos pos, StructurePlacementData placementData) -
toNbt
- Specified by:
toNbtin classStructurePiece
-
generate
public boolean generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos pos)- Specified by:
generatein classStructurePiece
-
handleMetadata
protected abstract void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox) -
translate
public void translate(int x, int y, int z)- Overrides:
translatein classStructurePiece
-
getRotation
- Overrides:
getRotationin classStructurePiece
-