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.BiomeType
biomeType
private float
integrity
private boolean
large
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 structureManager, Identifier template, BlockPos pos, BlockRotation rotation, float integrity, OceanRuinFeature.BiomeType biomeType, boolean large)
-
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
initialize(StructureManager structureManager)
private int
method_14829(BlockPos blockPos, BlockView blockView, BlockPos blockPos2)
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
-
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:
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
-
method_14829
-