public class RuinedPortalFeaturePiece extends SimpleStructurePiece
Modifier and Type | Class and Description |
---|---|
static class |
RuinedPortalFeaturePiece.Properties |
static class |
RuinedPortalFeaturePiece.VerticalPlacement |
StructurePiece.BlockRandomizer
Modifier and Type | Field and Description |
---|---|
private BlockMirror |
mirror |
private RuinedPortalFeaturePiece.Properties |
properties |
private BlockRotation |
rotation |
private Identifier |
template |
private RuinedPortalFeaturePiece.VerticalPlacement |
verticalPlacement |
placementData, pos, structure
AIR, boundingBox, length
Constructor and Description |
---|
RuinedPortalFeaturePiece(BlockPos pos,
RuinedPortalFeaturePiece.VerticalPlacement verticalPlacement,
RuinedPortalFeaturePiece.Properties properties,
Identifier template,
Structure structure,
BlockRotation rotation,
BlockMirror mirror,
BlockPos center) |
RuinedPortalFeaturePiece(StructureManager manager,
CompoundTag tag) |
getRotation, setStructureData, translate
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
private final Identifier template
private final BlockRotation rotation
private final BlockMirror mirror
private final RuinedPortalFeaturePiece.VerticalPlacement verticalPlacement
private final RuinedPortalFeaturePiece.Properties properties
public RuinedPortalFeaturePiece(BlockPos pos, RuinedPortalFeaturePiece.VerticalPlacement verticalPlacement, RuinedPortalFeaturePiece.Properties properties, Identifier template, Structure structure, BlockRotation rotation, BlockMirror mirror, BlockPos center)
public RuinedPortalFeaturePiece(StructureManager manager, CompoundTag tag)
protected void toNbt(CompoundTag tag)
toNbt
in class SimpleStructurePiece
private StructureProcessorRule createLavaReplacementRule()
public boolean generate(IWorld world, StructureAccessor structureAccessor, ChunkGenerator<?> chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
generate
in class SimpleStructurePiece
protected void handleMetadata(String metadata, BlockPos pos, IWorld world, Random random, BlockBox boundingBox)
handleMetadata
in class SimpleStructurePiece
private void generateOvergrownLeaves(Random random, IWorld world, BlockPos pos)
private static int getBaseHeight(IWorld world, int x, int y, RuinedPortalFeaturePiece.VerticalPlacement verticalPlacement)
public static Heightmap.Type getHeightmapType(RuinedPortalFeaturePiece.VerticalPlacement verticalPlacement)
private static StructureProcessorRule createReplacementRule(Block old, float chance, Block updated)
private static StructureProcessorRule createReplacementRule(Block old, Block updated)