public class RuinedPortalStructurePiece extends SimpleStructurePiece
| Modifier and Type | Class and Description |
|---|---|
static class |
RuinedPortalStructurePiece.Properties |
static class |
RuinedPortalStructurePiece.VerticalPlacement |
StructurePiece.BlockRandomizer| Modifier and Type | Field and Description |
|---|---|
private static Logger |
field_24992 |
private BlockMirror |
mirror |
private RuinedPortalStructurePiece.Properties |
properties |
private BlockRotation |
rotation |
private Identifier |
template |
private RuinedPortalStructurePiece.VerticalPlacement |
verticalPlacement |
placementData, pos, structureAIR, boundingBox, chainLength| Constructor and Description |
|---|
RuinedPortalStructurePiece(BlockPos pos,
RuinedPortalStructurePiece.VerticalPlacement verticalPlacement,
RuinedPortalStructurePiece.Properties properties,
Identifier template,
Structure structure,
BlockRotation rotation,
BlockMirror mirror,
BlockPos center) |
RuinedPortalStructurePiece(StructureManager manager,
CompoundTag tag) |
getRotation, setStructureData, translateaddBlock, 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, setOrientationprivate static final Logger field_24992
private final Identifier template
private final BlockRotation rotation
private final BlockMirror mirror
private final RuinedPortalStructurePiece.VerticalPlacement verticalPlacement
private final RuinedPortalStructurePiece.Properties properties
public RuinedPortalStructurePiece(BlockPos pos, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, RuinedPortalStructurePiece.Properties properties, Identifier template, Structure structure, BlockRotation rotation, BlockMirror mirror, BlockPos center)
public RuinedPortalStructurePiece(StructureManager manager, CompoundTag tag)
protected void toNbt(CompoundTag tag)
toNbt in class SimpleStructurePieceprivate StructureProcessorRule createLavaReplacementRule()
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)
generate in class SimpleStructurePieceprotected void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess serverWorldAccess, Random random, BlockBox boundingBox)
handleMetadata in class SimpleStructurePieceprivate void generateVines(Random random, WorldAccess world, BlockPos pos)
private void generateOvergrownLeaves(Random random, WorldAccess world, BlockPos pos)
private void updateNetherracksInBound(Random random, WorldAccess world)
private void updateNetherracks(Random random, WorldAccess world, BlockPos pos)
private void placeNetherrackBase(Random random, WorldAccess world)
private boolean canFillNetherrack(WorldAccess world, BlockPos pos)
private void placeNetherrackBottom(Random random, WorldAccess world, BlockPos pos)
private static int getBaseHeight(WorldAccess world, int x, int y, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement)
public static Heightmap.Type getHeightmapType(RuinedPortalStructurePiece.VerticalPlacement verticalPlacement)
private static StructureProcessorRule createReplacementRule(Block old, float chance, Block updated)
private static StructureProcessorRule createReplacementRule(Block old, Block updated)