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, structureAIR, 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, translateaddBlock, 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, setOrientationprivate 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 SimpleStructurePieceprivate StructureProcessorRule createLavaReplacementRule()
public boolean generate(IWorld world, StructureAccessor structureAccessor, ChunkGenerator<?> chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
generate in class SimpleStructurePieceprotected void handleMetadata(String metadata, BlockPos pos, IWorld world, Random random, BlockBox boundingBox)
handleMetadata in class SimpleStructurePieceprivate 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)