Package net.minecraft.structure
Class RuinedPortalStructurePiece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.SimpleStructurePiece
net.minecraft.structure.RuinedPortalStructurePiece
public class RuinedPortalStructurePiece extends SimpleStructurePiece
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RuinedPortalStructurePiece.Properties
static class
RuinedPortalStructurePiece.VerticalPlacement
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer
-
Field Summary
Fields Modifier and Type Field Description private static Logger
field_24992
private BlockMirror
mirror
private RuinedPortalStructurePiece.Properties
properties
private BlockRotation
rotation
private Identifier
template
private RuinedPortalStructurePiece.VerticalPlacement
verticalPlacement
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 RuinedPortalStructurePiece(StructureManager manager, CompoundTag tag)
RuinedPortalStructurePiece(BlockPos pos, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, RuinedPortalStructurePiece.Properties properties, Identifier template, Structure structure, BlockRotation rotation, BlockMirror mirror, BlockPos center)
-
Method Summary
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
-
field_24992
-
template
-
rotation
-
mirror
-
verticalPlacement
-
properties
-
-
Constructor Details
-
RuinedPortalStructurePiece
public RuinedPortalStructurePiece(BlockPos pos, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement, RuinedPortalStructurePiece.Properties properties, Identifier template, Structure structure, BlockRotation rotation, BlockMirror mirror, BlockPos center) -
RuinedPortalStructurePiece
-
-
Method Details
-
toNbt
- Overrides:
toNbt
in classSimpleStructurePiece
-
processProperties
-
createLavaReplacementRule
-
generate
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)- Overrides:
generate
in classSimpleStructurePiece
-
handleMetadata
protected void handleMetadata(String metadata, BlockPos pos, ServerWorldAccess serverWorldAccess, Random random, BlockBox boundingBox)- Specified by:
handleMetadata
in classSimpleStructurePiece
-
generateVines
-
generateOvergrownLeaves
-
updateNetherracksInBound
-
updateNetherracks
-
placeNetherrackBase
-
canFillNetherrack
-
placeNetherrackBottom
-
getBaseHeight
private static int getBaseHeight(WorldAccess world, int x, int y, RuinedPortalStructurePiece.VerticalPlacement verticalPlacement) -
getHeightmapType
public static Heightmap.Type getHeightmapType(RuinedPortalStructurePiece.VerticalPlacement verticalPlacement) -
createReplacementRule
private static StructureProcessorRule createReplacementRule(Block old, float chance, Block updated) -
createReplacementRule
-