public static class OceanRuinGenerator.Piece extends SimpleStructurePiece
StructurePiece.BlockRandomizer
Modifier and Type | Field and Description |
---|---|
private OceanRuinFeature.BiomeType |
biomeType |
private float |
integrity |
private boolean |
large |
private BlockRotation |
rotation |
private Identifier |
template |
placementData, pos, structure
AIR, boundingBox, chainLength
Constructor and Description |
---|
Piece(StructureManager manager,
CompoundTag tag) |
Piece(StructureManager structureManager,
Identifier template,
BlockPos pos,
BlockRotation rotation,
float integrity,
OceanRuinFeature.BiomeType biomeType,
boolean large) |
Modifier and Type | Method and 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) |
getRotation, setStructureData, translate
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
private final OceanRuinFeature.BiomeType biomeType
private final float integrity
private final Identifier template
private final BlockRotation rotation
private final boolean large
public Piece(StructureManager structureManager, Identifier template, BlockPos pos, BlockRotation rotation, float integrity, OceanRuinFeature.BiomeType biomeType, boolean large)
public Piece(StructureManager manager, CompoundTag tag)
private void initialize(StructureManager structureManager)
protected void toNbt(CompoundTag tag)
toNbt
in class SimpleStructurePiece
protected void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess serverWorldAccess, Random random, BlockBox boundingBox)
handleMetadata
in class SimpleStructurePiece
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
generate
in class SimpleStructurePiece