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
-
public class RuinedPortalPiece extends TemplateStructurePiece
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RuinedPortalPiece.Location
static class
RuinedPortalPiece.Serializer
-
Nested classes/interfaces inherited from class net.minecraft.world.gen.feature.structure.StructurePiece
StructurePiece.BlockSelector
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.Logger
LOGGER
private Mirror
mirror
private RuinedPortalPiece.Serializer
properties
private Rotation
rotation
private ResourceLocation
templateLocation
private RuinedPortalPiece.Location
verticalPlacement
-
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
Constructors Constructor Description 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(TemplateManager p_i232110_1_, CompoundNBT p_i232110_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAdditionalSaveData(CompoundNBT p_143011_1_)
private void
addNetherrackDripColumn(java.util.Random p_237022_1_, IWorld p_237022_2_, BlockPos p_237022_3_)
private void
addNetherrackDripColumnsBelowPortal(java.util.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
getLavaProcessorRule()
private static int
getSurfaceY(IWorld p_237009_0_, int p_237009_1_, int p_237009_2_, RuinedPortalPiece.Location p_237009_3_)
protected void
handleDataMarker(java.lang.String p_186175_1_, BlockPos p_186175_2_, IServerWorld p_186175_3_, java.util.Random p_186175_4_, MutableBoundingBox p_186175_5_)
private void
loadTemplate(Template p_237014_1_, BlockPos p_237014_2_)
private void
maybeAddLeavesAbove(java.util.Random p_237020_1_, IWorld p_237020_2_, BlockPos p_237020_3_)
private void
maybeAddVines(java.util.Random p_237016_1_, IWorld p_237016_2_, BlockPos p_237016_3_)
private void
placeNetherrackOrMagma(java.util.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_, java.util.Random p_230383_4_, MutableBoundingBox p_230383_5_, ChunkPos p_230383_6_, BlockPos p_230383_7_)
private void
spreadNetherrack(java.util.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 Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
templateLocation
private final ResourceLocation templateLocation
-
rotation
private final Rotation rotation
-
mirror
private final Mirror mirror
-
verticalPlacement
private final RuinedPortalPiece.Location verticalPlacement
-
properties
private final RuinedPortalPiece.Serializer properties
-
-
Constructor Detail
-
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
public RuinedPortalPiece(TemplateManager p_i232110_1_, CompoundNBT p_i232110_2_)
-
-
Method Detail
-
addAdditionalSaveData
protected void addAdditionalSaveData(CompoundNBT p_143011_1_)
- Overrides:
addAdditionalSaveData
in classTemplateStructurePiece
-
getLavaProcessorRule
private RuleEntry getLavaProcessorRule()
-
postProcess
public boolean postProcess(ISeedReader p_230383_1_, StructureManager p_230383_2_, ChunkGenerator p_230383_3_, java.util.Random p_230383_4_, MutableBoundingBox p_230383_5_, ChunkPos p_230383_6_, BlockPos p_230383_7_)
- Overrides:
postProcess
in classTemplateStructurePiece
-
handleDataMarker
protected void handleDataMarker(java.lang.String p_186175_1_, BlockPos p_186175_2_, IServerWorld p_186175_3_, java.util.Random p_186175_4_, MutableBoundingBox p_186175_5_)
- Specified by:
handleDataMarker
in classTemplateStructurePiece
-
maybeAddVines
private void maybeAddVines(java.util.Random p_237016_1_, IWorld p_237016_2_, BlockPos p_237016_3_)
-
maybeAddLeavesAbove
private void maybeAddLeavesAbove(java.util.Random p_237020_1_, IWorld p_237020_2_, BlockPos p_237020_3_)
-
addNetherrackDripColumnsBelowPortal
private void addNetherrackDripColumnsBelowPortal(java.util.Random p_237015_1_, IWorld p_237015_2_)
-
addNetherrackDripColumn
private void addNetherrackDripColumn(java.util.Random p_237022_1_, IWorld p_237022_2_, BlockPos p_237022_3_)
-
spreadNetherrack
private void spreadNetherrack(java.util.Random p_237019_1_, IWorld p_237019_2_)
-
canBlockBeReplacedByNetherrackOrMagma
private boolean canBlockBeReplacedByNetherrackOrMagma(IWorld p_237010_1_, BlockPos p_237010_2_)
-
placeNetherrackOrMagma
private void placeNetherrackOrMagma(java.util.Random p_237023_1_, IWorld p_237023_2_, BlockPos p_237023_3_)
-
getSurfaceY
private static int getSurfaceY(IWorld p_237009_0_, int p_237009_1_, int p_237009_2_, RuinedPortalPiece.Location p_237009_3_)
-
getHeightMapType
public static Heightmap.Type getHeightMapType(RuinedPortalPiece.Location p_237013_0_)
-
getBlockReplaceRule
private static RuleEntry getBlockReplaceRule(Block p_237011_0_, float p_237011_1_, Block p_237011_2_)
-
-