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 enum
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final float
private static final org.slf4j.Logger
private static final float
private static final float
private static final float
private final RuinedPortalPiece.Properties
private final RuinedPortalPiece.VerticalPlacement
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
(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
(StructureManager p_192446_, CompoundTag p_192447_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData
(StructurePieceSerializationContext p_192457_, CompoundTag p_192458_) 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
(Mirror p_163155_, Rotation p_163156_, RuinedPortalPiece.VerticalPlacement p_163157_, BlockPos p_163158_, RuinedPortalPiece.Properties p_163159_) private static StructurePlaceSettings
makeSettings
(StructureManager p_192460_, CompoundTag p_192461_, ResourceLocation p_192462_) 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_) void
postProcess
(WorldGenLevel p_192449_, StructureFeatureManager p_192450_, ChunkGenerator p_192451_, Random p_192452_, BoundingBox p_192453_, ChunkPos p_192454_, BlockPos p_192455_) 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, createBoundingBox, createChest, createChest, createDispenser, createTag, fillColumnDown, findCollisionPiece, 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.slf4j.Logger LOGGER -
PROBABILITY_OF_GOLD_GONE
private static final float PROBABILITY_OF_GOLD_GONE- See Also:
-
PROBABILITY_OF_MAGMA_INSTEAD_OF_NETHERRACK
private static final float PROBABILITY_OF_MAGMA_INSTEAD_OF_NETHERRACK- See Also:
-
PROBABILITY_OF_MAGMA_INSTEAD_OF_LAVA
private static final float PROBABILITY_OF_MAGMA_INSTEAD_OF_LAVA- See Also:
-
DEFAULT_MOSSINESS
private static final float DEFAULT_MOSSINESS- See Also:
-
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
protected void addAdditionalSaveData(StructurePieceSerializationContext p_192457_, CompoundTag p_192458_) - Overrides:
addAdditionalSaveData
in classTemplateStructurePiece
-
makeSettings
private static StructurePlaceSettings makeSettings(StructureManager p_192460_, CompoundTag p_192461_, ResourceLocation p_192462_) -
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 void postProcess(WorldGenLevel p_192449_, StructureFeatureManager p_192450_, ChunkGenerator p_192451_, Random p_192452_, BoundingBox p_192453_, ChunkPos p_192454_, BlockPos p_192455_) - 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
-