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 StructurePiece
StructurePiece.BlockSelector -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final floatprivate static final floatprivate static final floatprivate final RuinedPortalPiece.Propertiesprivate final RuinedPortalPiece.VerticalPlacementFields inherited from class TemplateStructurePiece
placeSettings, template, templateName, templatePositionFields inherited from class StructurePiece
boundingBox, CAVE_AIR, genDepth -
Constructor Summary
ConstructorsConstructorDescriptionRuinedPortalPiece(StructureTemplateManager structureTemplateManager, BlockPos templatePosition, RuinedPortalPiece.VerticalPlacement verticalPlacement, RuinedPortalPiece.Properties properties, Identifier templateLocation, StructureTemplate template, Rotation rotation, Mirror mirror, BlockPos pivot) 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 source, float probability, Block target) private static ProcessorRulegetBlockReplaceRule(Block source, Block target) 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 markerId, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox chunkBB) private static StructurePlaceSettingsmakeSettings(Mirror mirror, Rotation rotation, RuinedPortalPiece.VerticalPlacement verticalPlacement, BlockPos pivot, RuinedPortalPiece.Properties properties) private static StructurePlaceSettingsmakeSettings(StructureTemplateManager structureTemplateManager, CompoundTag tag, Identifier 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 chunkBB, ChunkPos chunkPos, BlockPos referencePos) private voidspreadNetherrack(RandomSource random, LevelAccessor level) Methods inherited from class TemplateStructurePiece
getRotation, makeTemplateLocation, move, placeSettings, template, templatePositionMethods inherited from class 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
-
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, Identifier templateLocation, StructureTemplate template, Rotation rotation, Mirror mirror, BlockPos pivot) -
RuinedPortalPiece
-
-
Method Details
-
addAdditionalSaveData
- Overrides:
addAdditionalSaveDatain classTemplateStructurePiece
-
makeSettings
private static StructurePlaceSettings makeSettings(StructureTemplateManager structureTemplateManager, CompoundTag tag, Identifier location) -
makeSettings
private static StructurePlaceSettings makeSettings(Mirror mirror, Rotation rotation, RuinedPortalPiece.VerticalPlacement verticalPlacement, BlockPos pivot, 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 chunkBB, ChunkPos chunkPos, BlockPos referencePos) - Overrides:
postProcessin classTemplateStructurePiece
-
handleDataMarker
protected void handleDataMarker(String markerId, BlockPos pos, ServerLevelAccessor level, RandomSource random, BoundingBox chunkBB) - 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
-
getBlockReplaceRule
-