Class BlockAgeProcessor
java.lang.Object
net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor
net.minecraft.world.level.levelgen.structure.templatesystem.BlockAgeProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<BlockAgeProcessor> private final floatprivate static final BlockState[]private static final floatprivate static final floatprivate static final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static BlockStategetRandomBlock(RandomSource pRandom, BlockState[] pStates) private BlockStategetRandomBlock(RandomSource pRandom, BlockState[] pNormalStates, BlockState[] pMossyStates) private static BlockStategetRandomFacingStairs(RandomSource pRandom, Block pStairsBlock) protected StructureProcessorType<?> getType()private BlockStatemaybeReplaceFullStoneBlock(RandomSource pRandom) private BlockStatemaybeReplaceObsidian(RandomSource pRandom) private BlockStatemaybeReplaceSlab(BlockState pState, RandomSource pRandom) private BlockStatemaybeReplaceStairs(BlockState pState, RandomSource pRandom) private BlockStatemaybeReplaceWall(BlockState pState, RandomSource pRandom) 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
finalizeProcessing, 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 pMossiness)
-
-
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:
processBlockin classStructureProcessor
-
maybeReplaceFullStoneBlock
-
maybeReplaceStairs
-
maybeReplaceSlab
-
maybeReplaceWall
-
maybeReplaceObsidian
-
getRandomFacingStairs
-
getRandomBlock
private BlockState getRandomBlock(RandomSource pRandom, BlockState[] pNormalStates, BlockState[] pMossyStates) -
getRandomBlock
-
getType
- Specified by:
getTypein classStructureProcessor
-