Class RuinedPortalPiece
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
net.minecraft.world.level.levelgen.structure.RuinedPortalPiece
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector
-
Field Summary
Modifier and TypeFieldDescriptionprivate static float
private static org.apache.logging.log4j.Logger
private static float
private static float
private static float
private RuinedPortalPiece.Properties
Fields inherited from class net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
placeSettings, template, templateName, templatePosition
Fields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
Constructor Summary
ConstructorDescriptionRuinedPortalPiece(ServerLevel p_163135_, CompoundTag p_163136_)
RuinedPortalPiece(StructureManager p_163138_, BlockPos p_163139_, RuinedPortalPiece.VerticalPlacement p_163140_, RuinedPortalPiece.Properties p_163141_, ResourceLocation p_163142_, StructureTemplate p_163143_, Rotation p_163144_, Mirror p_163145_, BlockPos p_163146_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData(ServerLevel p_163148_, CompoundTag p_163149_)
private void
addNetherrackDripColumn(Random p_72728_, LevelAccessor p_72729_, BlockPos p_72730_)
private void
addNetherrackDripColumnsBelowPortal(Random p_72704_, LevelAccessor p_72705_)
private boolean
canBlockBeReplacedByNetherrackOrMagma(LevelAccessor p_72675_, BlockPos p_72676_)
private static ProcessorRule
getBlockReplaceRule(Block p_72686_, float p_72687_, Block p_72688_)
private static ProcessorRule
getBlockReplaceRule(Block p_72690_, Block p_72691_)
static Heightmap.Types
private static ProcessorRule
getLavaProcessorRule(RuinedPortalPiece.VerticalPlacement p_163161_, RuinedPortalPiece.Properties p_163162_)
private static int
getSurfaceY(LevelAccessor p_72670_, int p_72671_, int p_72672_, RuinedPortalPiece.VerticalPlacement p_72673_)
protected void
handleDataMarker(String p_72698_, BlockPos p_72699_, ServerLevelAccessor p_72700_, Random p_72701_, BoundingBox p_72702_)
private static StructurePlaceSettings
makeSettings(ServerLevel p_163151_, CompoundTag p_163152_, ResourceLocation p_163153_)
private static StructurePlaceSettings
makeSettings(Mirror p_163155_, Rotation p_163156_, RuinedPortalPiece.VerticalPlacement p_163157_, BlockPos p_163158_, RuinedPortalPiece.Properties p_163159_)
private void
maybeAddLeavesAbove(Random p_72723_, LevelAccessor p_72724_, BlockPos p_72725_)
private void
maybeAddVines(Random p_72707_, LevelAccessor p_72708_, BlockPos p_72709_)
private void
placeNetherrackOrMagma(Random p_72732_, LevelAccessor p_72733_, BlockPos p_72734_)
boolean
postProcess(WorldGenLevel p_72678_, StructureFeatureManager p_72679_, ChunkGenerator p_72680_, Random p_72681_, BoundingBox p_72682_, ChunkPos p_72683_, BlockPos p_72684_)
private void
spreadNetherrack(Random p_72720_, LevelAccessor p_72721_)
Methods inherited from class net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
getRotation, makeTemplateLocation, move
Methods inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
addChildren, canBeReplaced, createChest, createChest, createDispenser, createTag, fillColumnDown, generateAirBox, generateBox, generateBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getLocatorPosition, getMirror, getNoiseEffect, getOrientation, getRandomHorizontalDirection, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, placeBlock, reorient, setOrientation
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
PROBABILITY_OF_GOLD_GONE
private static final float PROBABILITY_OF_GOLD_GONE- See Also:
- Constant Field Values
-
PROBABILITY_OF_MAGMA_INSTEAD_OF_NETHERRACK
private static final float PROBABILITY_OF_MAGMA_INSTEAD_OF_NETHERRACK- See Also:
- Constant Field Values
-
PROBABILITY_OF_MAGMA_INSTEAD_OF_LAVA
private static final float PROBABILITY_OF_MAGMA_INSTEAD_OF_LAVA- See Also:
- Constant Field Values
-
DEFAULT_MOSSINESS
private static final float DEFAULT_MOSSINESS- See Also:
- Constant Field Values
-
verticalPlacement
-
properties
-
-
Constructor Details
-
RuinedPortalPiece
public RuinedPortalPiece(StructureManager p_163138_, BlockPos p_163139_, RuinedPortalPiece.VerticalPlacement p_163140_, RuinedPortalPiece.Properties p_163141_, ResourceLocation p_163142_, StructureTemplate p_163143_, Rotation p_163144_, Mirror p_163145_, BlockPos p_163146_) -
RuinedPortalPiece
-
-
Method Details
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveData
in classTemplateStructurePiece
-
makeSettings
private static StructurePlaceSettings makeSettings(ServerLevel p_163151_, CompoundTag p_163152_, ResourceLocation p_163153_) -
makeSettings
private static StructurePlaceSettings makeSettings(Mirror p_163155_, Rotation p_163156_, RuinedPortalPiece.VerticalPlacement p_163157_, BlockPos p_163158_, RuinedPortalPiece.Properties p_163159_) -
getLavaProcessorRule
private static ProcessorRule getLavaProcessorRule(RuinedPortalPiece.VerticalPlacement p_163161_, RuinedPortalPiece.Properties p_163162_) -
postProcess
public boolean postProcess(WorldGenLevel p_72678_, StructureFeatureManager p_72679_, ChunkGenerator p_72680_, Random p_72681_, BoundingBox p_72682_, ChunkPos p_72683_, BlockPos p_72684_)- Overrides:
postProcess
in classTemplateStructurePiece
-
handleDataMarker
protected void handleDataMarker(String p_72698_, BlockPos p_72699_, ServerLevelAccessor p_72700_, Random p_72701_, BoundingBox p_72702_)- Specified by:
handleDataMarker
in classTemplateStructurePiece
-
maybeAddVines
-
maybeAddLeavesAbove
-
addNetherrackDripColumnsBelowPortal
-
addNetherrackDripColumn
-
spreadNetherrack
-
canBlockBeReplacedByNetherrackOrMagma
-
placeNetherrackOrMagma
-
getSurfaceY
private static int getSurfaceY(LevelAccessor p_72670_, int p_72671_, int p_72672_, RuinedPortalPiece.VerticalPlacement p_72673_) -
getHeightMapType
-
getBlockReplaceRule
-
getBlockReplaceRule
-