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, structure -
Constructor Summary
Constructors Constructor Description Piece(StructureManager manager, CompoundTag 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(ServerWorldAccess serverWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)protected voidhandleMetadata(String metadata, BlockPos pos, WorldAccess world, Random random, BlockBox boundingBox)private voidinitialize(StructureManager structureManager)private intmethod_14829(BlockPos blockPos, BlockView blockView, BlockPos blockPos2)protected voidtoNbt(CompoundTag 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, fillWithOutline, fillWithOutline, fillWithOutlineUnderSealevel, getBlockAt, getBoundingBox, getFacing, getLength, getOverlappingPiece, getTag, getType, intersectsChunk, isUnderSeaLevel, method_14916, method_14919, method_14936, method_14937, placeJigsaw, setOrientation
-
Field Details
-
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, WorldAccess world, Random random, BlockBox boundingBox)- Specified by:
handleMetadatain classSimpleStructurePiece
-
generate
public boolean generate(ServerWorldAccess serverWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)- Overrides:
generatein classSimpleStructurePiece
-
method_14829
-