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
(RandomSource p_230264_, BlockState[] p_230265_) private BlockState
getRandomBlock
(RandomSource p_230267_, BlockState[] p_230268_, BlockState[] p_230269_) private static BlockState
getRandomFacingStairs
(RandomSource p_230258_, Block p_230259_) protected StructureProcessorType<?>
getType()
private BlockState
maybeReplaceFullStoneBlock
(RandomSource p_230256_) private BlockState
maybeReplaceObsidian
(RandomSource p_230275_) private BlockState
maybeReplaceSlab
(RandomSource p_230271_) private BlockState
maybeReplaceStairs
(RandomSource p_230261_, BlockState p_230262_) private BlockState
maybeReplaceWall
(RandomSource p_230273_) 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
private BlockState getRandomBlock(RandomSource p_230267_, BlockState[] p_230268_, BlockState[] p_230269_) -
getRandomBlock
-
getType
- Specified by:
getType
in classStructureProcessor
-