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 BlockRotation
rotation
private Identifier
template
Fields inherited from class net.minecraft.structure.SimpleStructurePiece
placementData, pos, structure
Fields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength
-
Constructor Summary
Constructors Constructor Description Piece(StructureManager manager, CompoundTag tag)
Piece(StructureManager manager, Identifier identifier, BlockPos pos, BlockRotation rotation, int yOffset)
-
Method Summary
Modifier and Type Method Description boolean
generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
protected void
handleMetadata(String metadata, BlockPos pos, ServerWorldAccess serverWorldAccess, Random random, BlockBox boundingBox)
private void
initializeStructureData(StructureManager manager)
protected void
toNbt(CompoundTag tag)
Methods inherited from class net.minecraft.structure.SimpleStructurePiece
getRotation, setStructureData, translate
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
-
template
-
rotation
-
-
Constructor Details
-
Piece
public Piece(StructureManager manager, Identifier identifier, BlockPos pos, BlockRotation rotation, int yOffset) -
Piece
-
-
Method Details
-
initializeStructureData
-
toNbt
- Overrides:
toNbt
in classSimpleStructurePiece
-
handleMetadata
protected void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess serverWorldAccess, Random random, BlockBox boundingBox)- Specified by:
handleMetadata
in classSimpleStructurePiece
-
generate
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)- Overrides:
generate
in classSimpleStructurePiece
-