Class BlockAgeProcessor
java.lang.Object
net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor
net.minecraft.world.level.levelgen.structure.templatesystem.BlockAgeProcessor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlockAgeProcessor>
private final float
private static final BlockState[]
private static final float
private static final float
private static final float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static BlockState
getRandomBlock
(Random p_74033_, BlockState[] p_74034_) private BlockState
getRandomBlock
(Random p_74036_, BlockState[] p_74037_, BlockState[] p_74038_) private static BlockState
getRandomFacingStairs
(Random p_74027_, Block p_74028_) protected StructureProcessorType<?>
getType()
private BlockState
maybeReplaceFullStoneBlock
(Random p_74025_) private BlockState
maybeReplaceObsidian
(Random p_74044_) private BlockState
maybeReplaceSlab
(Random p_74040_) private BlockState
maybeReplaceStairs
(Random p_74030_, BlockState p_74031_) private BlockState
maybeReplaceWall
(Random p_74042_) processBlock
(LevelReader p_74016_, BlockPos p_74017_, BlockPos p_74018_, StructureTemplate.StructureBlockInfo p_74019_, StructureTemplate.StructureBlockInfo p_74020_, StructurePlaceSettings p_74021_) Methods inherited from class net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor
process, processEntity
-
Field Details
-
CODEC
-
PROBABILITY_OF_REPLACING_FULL_BLOCK
private static final float PROBABILITY_OF_REPLACING_FULL_BLOCK- See Also:
-
PROBABILITY_OF_REPLACING_STAIRS
private static final float PROBABILITY_OF_REPLACING_STAIRS- See Also:
-
PROBABILITY_OF_REPLACING_OBSIDIAN
private static final float PROBABILITY_OF_REPLACING_OBSIDIAN- See Also:
-
NON_MOSSY_REPLACEMENTS
-
mossiness
private final float mossiness
-
-
Constructor Details
-
BlockAgeProcessor
public BlockAgeProcessor(float p_74013_)
-
-
Method Details
-
processBlock
@Nullable public StructureTemplate.StructureBlockInfo processBlock(LevelReader p_74016_, BlockPos p_74017_, BlockPos p_74018_, StructureTemplate.StructureBlockInfo p_74019_, StructureTemplate.StructureBlockInfo p_74020_, StructurePlaceSettings p_74021_) - Overrides:
processBlock
in classStructureProcessor
-
maybeReplaceFullStoneBlock
-
maybeReplaceStairs
-
maybeReplaceSlab
-
maybeReplaceWall
-
maybeReplaceObsidian
-
getRandomFacingStairs
-
getRandomBlock
-
getRandomBlock
-
getType
- Specified by:
getType
in classStructureProcessor
-