Package net.minecraft.structure
Class OceanRuinGenerator.Piece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.SimpleStructurePiece
net.minecraft.structure.OceanRuinGenerator.Piece
- Enclosing class:
- OceanRuinGenerator
public static class OceanRuinGenerator.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 OceanRuinFeature.BiomeTypebiomeTypeprivate floatintegrityprivate booleanlargeprivate 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 structureManager, Identifier template, BlockPos pos, BlockRotation rotation, float integrity, OceanRuinFeature.BiomeType biomeType, boolean large) -
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 voidinitialize(StructureManager structureManager)private intmethod_14829(BlockPos blockPos, BlockView blockView, BlockPos blockPos2)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
-
biomeType
-
integrity
private final float integrity -
template
-
rotation
-
large
private final boolean large
-
-
Constructor Details
-
Piece
public Piece(StructureManager structureManager, Identifier template, BlockPos pos, BlockRotation rotation, float integrity, OceanRuinFeature.BiomeType biomeType, boolean large) -
Piece
-
-
Method Details
-
initialize
-
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
-
method_14829
-