Class RuinedPortalPiece
java.lang.Object
net.minecraft.world.gen.feature.structure.StructurePiece
net.minecraft.world.gen.feature.structure.TemplateStructurePiece
net.minecraft.world.gen.feature.structure.RuinedPortalPiece
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
Nested classes/interfaces inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
StructurePiece.BlockSelector
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.logging.log4j.Logger
private final Mirror
private final RuinedPortalPiece.Serializer
private final Rotation
private final ResourceLocation
private final RuinedPortalPiece.Location
Fields inherited from class net.minecraft.world.gen.feature.structure.TemplateStructurePiece
placeSettings, template, templatePosition
Fields inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
Constructor Summary
ConstructorDescriptionRuinedPortalPiece
(BlockPos p_i232111_1_, RuinedPortalPiece.Location p_i232111_2_, RuinedPortalPiece.Serializer p_i232111_3_, ResourceLocation p_i232111_4_, Template p_i232111_5_, Rotation p_i232111_6_, Mirror p_i232111_7_, BlockPos p_i232111_8_) RuinedPortalPiece
(TemplateManager p_i232110_1_, CompoundNBT p_i232110_2_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData
(CompoundNBT p_143011_1_) private void
addNetherrackDripColumn
(Random p_237022_1_, IWorld p_237022_2_, BlockPos p_237022_3_) private void
addNetherrackDripColumnsBelowPortal
(Random p_237015_1_, IWorld p_237015_2_) private boolean
canBlockBeReplacedByNetherrackOrMagma
(IWorld p_237010_1_, BlockPos p_237010_2_) private static RuleEntry
getBlockReplaceRule
(Block p_237011_0_, float p_237011_1_, Block p_237011_2_) private static RuleEntry
getBlockReplaceRule
(Block p_237012_0_, Block p_237012_1_) static Heightmap.Type
getHeightMapType
(RuinedPortalPiece.Location p_237013_0_) private RuleEntry
private static int
getSurfaceY
(IWorld p_237009_0_, int p_237009_1_, int p_237009_2_, RuinedPortalPiece.Location p_237009_3_) protected void
handleDataMarker
(String p_186175_1_, BlockPos p_186175_2_, IServerWorld p_186175_3_, Random p_186175_4_, MutableBoundingBox p_186175_5_) private void
loadTemplate
(Template p_237014_1_, BlockPos p_237014_2_) private void
maybeAddLeavesAbove
(Random p_237020_1_, IWorld p_237020_2_, BlockPos p_237020_3_) private void
maybeAddVines
(Random p_237016_1_, IWorld p_237016_2_, BlockPos p_237016_3_) private void
placeNetherrackOrMagma
(Random p_237023_1_, IWorld p_237023_2_, BlockPos p_237023_3_) boolean
postProcess
(ISeedReader p_230383_1_, StructureManager p_230383_2_, ChunkGenerator p_230383_3_, Random p_230383_4_, MutableBoundingBox p_230383_5_, ChunkPos p_230383_6_, BlockPos p_230383_7_) private void
spreadNetherrack
(Random p_237019_1_, IWorld p_237019_2_) Methods inherited from class net.minecraft.world.gen.feature.structure.TemplateStructurePiece
getRotation, move, setup
Methods inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
addChildren, createChest, createChest, createDispenser, createTag, edgesLiquid, fillColumnDown, findCollisionPiece, generateAirBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getOrientation, getType, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, maybeGenerateBlock, placeBlock, reorient, setOrientation
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
templateLocation
-
rotation
-
mirror
-
verticalPlacement
-
properties
-
-
Constructor Details
-
RuinedPortalPiece
public RuinedPortalPiece(BlockPos p_i232111_1_, RuinedPortalPiece.Location p_i232111_2_, RuinedPortalPiece.Serializer p_i232111_3_, ResourceLocation p_i232111_4_, Template p_i232111_5_, Rotation p_i232111_6_, Mirror p_i232111_7_, BlockPos p_i232111_8_) -
RuinedPortalPiece
-
-
Method Details
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classTemplateStructurePiece
-
loadTemplate
-
getLavaProcessorRule
-
postProcess
public boolean postProcess(ISeedReader p_230383_1_, StructureManager p_230383_2_, ChunkGenerator p_230383_3_, Random p_230383_4_, MutableBoundingBox p_230383_5_, ChunkPos p_230383_6_, BlockPos p_230383_7_) - Overrides:
postProcess
in classTemplateStructurePiece
-
handleDataMarker
protected void handleDataMarker(String p_186175_1_, BlockPos p_186175_2_, IServerWorld p_186175_3_, Random p_186175_4_, MutableBoundingBox p_186175_5_) - Specified by:
handleDataMarker
in classTemplateStructurePiece
-
maybeAddVines
-
maybeAddLeavesAbove
-
addNetherrackDripColumnsBelowPortal
-
addNetherrackDripColumn
-
spreadNetherrack
-
canBlockBeReplacedByNetherrackOrMagma
-
placeNetherrackOrMagma
-
getSurfaceY
private static int getSurfaceY(IWorld p_237009_0_, int p_237009_1_, int p_237009_2_, RuinedPortalPiece.Location p_237009_3_) -
getHeightMapType
-
getBlockReplaceRule
-
getBlockReplaceRule
-