Package net.minecraft.structure
Class IglooGenerator.Piece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.SimpleStructurePiece
net.minecraft.structure.IglooGenerator.Piece
- Enclosing class:
- IglooGenerator
public static class IglooGenerator.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 BlockRotationrotationprivate IdentifiertemplateFields 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, NbtCompound tag)Piece(StructureManager manager, Identifier identifier, BlockPos pos, BlockRotation rotation, int yOffset) -
Method Summary
Modifier and Type Method Description booleangenerate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos pos)protected voidhandleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox)private voidinitializeStructureData(StructureManager manager)protected voidtoNbt(NbtCompound tag)Methods inherited from class net.minecraft.structure.SimpleStructurePiece
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
-
-
Constructor Details
-
Piece
public Piece(StructureManager manager, Identifier identifier, BlockPos pos, BlockRotation rotation, int yOffset) -
Piece
-
-
Method Details
-
initializeStructureData
-
toNbt
- Overrides:
toNbtin classSimpleStructurePiece
-
handleMetadata
protected void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess world, Random random, BlockBox boundingBox)- Specified by:
handleMetadatain classSimpleStructurePiece
-
generate
public boolean generate(StructureWorldAccess world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos pos)- Overrides:
generatein classSimpleStructurePiece
-