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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumNested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final floatprivate static final floatprivate static final floatprivate final RuinedPortalPiece.Propertiesprivate final RuinedPortalPiece.VerticalPlacementFields inherited from class net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
placeSettings, template, templateName, templatePositionFields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth -
Constructor Summary
ConstructorsConstructorDescriptionRuinedPortalPiece(StructureTemplateManager structureTemplateManager, BlockPos templatePosition, RuinedPortalPiece.VerticalPlacement verticalPlacement, RuinedPortalPiece.Properties properties, ResourceLocation location, StructureTemplate template, Rotation rotation, Mirror mirror, BlockPos pivotPos) RuinedPortalPiece(StructureTemplateManager structureTemplateManager, CompoundTag tag) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprivate voidaddNetherrackDripColumn(RandomSource random, LevelAccessor level, BlockPos pos) private voidaddNetherrackDripColumnsBelowPortal(RandomSource random, LevelAccessor level) private booleanprivate static ProcessorRulegetBlockReplaceRule(Block block, float probability, Block replaceBlock) private static ProcessorRulegetBlockReplaceRule(Block block, Block replaceBlock) static Heightmap.TypesgetHeightMapType(RuinedPortalPiece.VerticalPlacement verticalPlacement) private static ProcessorRulegetLavaProcessorRule(RuinedPortalPiece.VerticalPlacement verticalPlacement, RuinedPortalPiece.Properties properties) private static intgetSurfaceY(LevelAccessor level, int x, int z, RuinedPortalPiece.VerticalPlacement verticalPlacement) protected voidhandleDataMarker(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) private static StructurePlaceSettingsmakeSettings(Mirror mirror, Rotation rotation, RuinedPortalPiece.VerticalPlacement verticalPlacement, BlockPos pos, RuinedPortalPiece.Properties properties) private static StructurePlaceSettingsmakeSettings(StructureTemplateManager structureTemplateManager, CompoundTag tag, ResourceLocation location) private voidmaybeAddLeavesAbove(RandomSource random, LevelAccessor level, BlockPos pos) private voidmaybeAddVines(RandomSource random, LevelAccessor level, BlockPos pos) private voidplaceNetherrackOrMagma(RandomSource random, LevelAccessor level, BlockPos pos) voidpostProcess(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) private voidspreadNetherrack(RandomSource random, LevelAccessor level) Methods inherited from class net.minecraft.world.level.levelgen.structure.TemplateStructurePiece
getRotation, makeTemplateLocation, move, placeSettings, template, templatePositionMethods 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 structureTemplateManager, BlockPos templatePosition, RuinedPortalPiece.VerticalPlacement verticalPlacement, RuinedPortalPiece.Properties properties, ResourceLocation location, StructureTemplate template, Rotation rotation, Mirror mirror, BlockPos pivotPos) -
RuinedPortalPiece
-
-
Method Details
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveDatain classTemplateStructurePiece
-
makeSettings
private static StructurePlaceSettings makeSettings(StructureTemplateManager structureTemplateManager, CompoundTag tag, ResourceLocation location) -
makeSettings
private static StructurePlaceSettings makeSettings(Mirror mirror, Rotation rotation, RuinedPortalPiece.VerticalPlacement verticalPlacement, BlockPos pos, RuinedPortalPiece.Properties properties) -
getLavaProcessorRule
private static ProcessorRule getLavaProcessorRule(RuinedPortalPiece.VerticalPlacement verticalPlacement, RuinedPortalPiece.Properties properties) -
postProcess
public void postProcess(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox box, ChunkPos chunkPos, BlockPos pos) - Overrides:
postProcessin classTemplateStructurePiece
-
handleDataMarker
protected void handleDataMarker(String name, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox box) - Specified by:
handleDataMarkerin classTemplateStructurePiece
-
maybeAddVines
-
maybeAddLeavesAbove
-
addNetherrackDripColumnsBelowPortal
-
addNetherrackDripColumn
-
spreadNetherrack
-
canBlockBeReplacedByNetherrackOrMagma
-
placeNetherrackOrMagma
-
getSurfaceY
private static int getSurfaceY(LevelAccessor level, int x, int z, RuinedPortalPiece.VerticalPlacement verticalPlacement) -
getHeightMapType
public static Heightmap.Types getHeightMapType(RuinedPortalPiece.VerticalPlacement verticalPlacement) -
getBlockReplaceRule
private static ProcessorRule getBlockReplaceRule(Block block, float probability, Block replaceBlock) -
getBlockReplaceRule
-