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.structures.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 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
(StructureTemplateManager p_229105_, BlockPos p_229106_, RuinedPortalPiece.VerticalPlacement p_229107_, RuinedPortalPiece.Properties p_229108_, ResourceLocation p_229109_, StructureTemplate p_229110_, Rotation p_229111_, Mirror p_229112_, BlockPos p_229113_) RuinedPortalPiece
(StructureTemplateManager p_229115_, CompoundTag p_229116_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData
(StructurePieceSerializationContext p_229158_, CompoundTag p_229159_) private void
addNetherrackDripColumn
(RandomSource p_229190_, LevelAccessor p_229191_, BlockPos p_229192_) private void
addNetherrackDripColumnsBelowPortal
(RandomSource p_229118_, LevelAccessor p_229119_) private boolean
canBlockBeReplacedByNetherrackOrMagma
(LevelAccessor p_229134_, BlockPos p_229135_) private static ProcessorRule
getBlockReplaceRule
(Block p_229145_, float p_229146_, Block p_229147_) private static ProcessorRule
getBlockReplaceRule
(Block p_229149_, Block p_229150_) static Heightmap.Types
private static ProcessorRule
getLavaProcessorRule
(RuinedPortalPiece.VerticalPlacement p_229163_, RuinedPortalPiece.Properties p_229164_) private static int
getSurfaceY
(LevelAccessor p_229129_, int p_229130_, int p_229131_, RuinedPortalPiece.VerticalPlacement p_229132_) protected void
handleDataMarker
(String p_229170_, BlockPos p_229171_, ServerLevelAccessor p_229172_, RandomSource p_229173_, BoundingBox p_229174_) private static StructurePlaceSettings
makeSettings
(Mirror p_229152_, Rotation p_229153_, RuinedPortalPiece.VerticalPlacement p_229154_, BlockPos p_229155_, RuinedPortalPiece.Properties p_229156_) private static StructurePlaceSettings
makeSettings
(StructureTemplateManager p_229166_, CompoundTag p_229167_, ResourceLocation p_229168_) private void
maybeAddLeavesAbove
(RandomSource p_229182_, LevelAccessor p_229183_, BlockPos p_229184_) private void
maybeAddVines
(RandomSource p_229121_, LevelAccessor p_229122_, BlockPos p_229123_) private void
placeNetherrackOrMagma
(RandomSource p_229194_, LevelAccessor p_229195_, BlockPos p_229196_) void
postProcess
(WorldGenLevel p_229137_, StructureManager p_229138_, ChunkGenerator p_229139_, RandomSource p_229140_, BoundingBox p_229141_, ChunkPos p_229142_, BlockPos p_229143_) private void
spreadNetherrack
(RandomSource p_229179_, LevelAccessor p_229180_) Methods inherited from class net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
getRotation, makeTemplateLocation, move, placeSettings, template, templatePosition
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, getOrientation, getRandomHorizontalDirection, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, placeBlock, reorient, setGenDepth, 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:
-
verticalPlacement
-
properties
-
-
Constructor Details
-
RuinedPortalPiece
public RuinedPortalPiece(StructureTemplateManager p_229105_, BlockPos p_229106_, RuinedPortalPiece.VerticalPlacement p_229107_, RuinedPortalPiece.Properties p_229108_, ResourceLocation p_229109_, StructureTemplate p_229110_, Rotation p_229111_, Mirror p_229112_, BlockPos p_229113_) -
RuinedPortalPiece
-
-
Method Details
-
addAdditionalSaveData
protected void addAdditionalSaveData(StructurePieceSerializationContext p_229158_, CompoundTag p_229159_) - Overrides:
addAdditionalSaveData
in classTemplateStructurePiece
-
makeSettings
private static StructurePlaceSettings makeSettings(StructureTemplateManager p_229166_, CompoundTag p_229167_, ResourceLocation p_229168_) -
makeSettings
private static StructurePlaceSettings makeSettings(Mirror p_229152_, Rotation p_229153_, RuinedPortalPiece.VerticalPlacement p_229154_, BlockPos p_229155_, RuinedPortalPiece.Properties p_229156_) -
getLavaProcessorRule
private static ProcessorRule getLavaProcessorRule(RuinedPortalPiece.VerticalPlacement p_229163_, RuinedPortalPiece.Properties p_229164_) -
postProcess
public void postProcess(WorldGenLevel p_229137_, StructureManager p_229138_, ChunkGenerator p_229139_, RandomSource p_229140_, BoundingBox p_229141_, ChunkPos p_229142_, BlockPos p_229143_) - Overrides:
postProcess
in classTemplateStructurePiece
-
handleDataMarker
protected void handleDataMarker(String p_229170_, BlockPos p_229171_, ServerLevelAccessor p_229172_, RandomSource p_229173_, BoundingBox p_229174_) - Specified by:
handleDataMarker
in classTemplateStructurePiece
-
maybeAddVines
-
maybeAddLeavesAbove
private void maybeAddLeavesAbove(RandomSource p_229182_, LevelAccessor p_229183_, BlockPos p_229184_) -
addNetherrackDripColumnsBelowPortal
-
addNetherrackDripColumn
private void addNetherrackDripColumn(RandomSource p_229190_, LevelAccessor p_229191_, BlockPos p_229192_) -
spreadNetherrack
-
canBlockBeReplacedByNetherrackOrMagma
-
placeNetherrackOrMagma
private void placeNetherrackOrMagma(RandomSource p_229194_, LevelAccessor p_229195_, BlockPos p_229196_) -
getSurfaceY
private static int getSurfaceY(LevelAccessor p_229129_, int p_229130_, int p_229131_, RuinedPortalPiece.VerticalPlacement p_229132_) -
getHeightMapType
-
getBlockReplaceRule
-
getBlockReplaceRule
-