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 float
private static final BlockState[]
private static final float
private static final float
private static final float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static BlockState
getRandomBlock
(RandomSource pRandom, BlockState[] pStates) private BlockState
getRandomBlock
(RandomSource pRandom, BlockState[] pNormalStates, BlockState[] pMossyStates) private static BlockState
getRandomFacingStairs
(RandomSource pRandom, Block pStairsBlock) protected StructureProcessorType
<?> getType()
private BlockState
maybeReplaceFullStoneBlock
(RandomSource pRandom) private BlockState
maybeReplaceObsidian
(RandomSource pRandom) private BlockState
maybeReplaceSlab
(RandomSource pRandom) private BlockState
maybeReplaceStairs
(RandomSource pRandom, BlockState pState) private BlockState
maybeReplaceWall
(RandomSource pRandom) processBlock
(LevelReader pLevel, BlockPos pOffset, BlockPos pPos, StructureTemplate.StructureBlockInfo pBlockInfo, StructureTemplate.StructureBlockInfo pRelativeBlockInfo, StructurePlaceSettings pSettings) 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 p_74013_)
-
-
Method Details
-
processBlock
@Nullable public StructureTemplate.StructureBlockInfo processBlock(LevelReader pLevel, BlockPos pOffset, BlockPos pPos, StructureTemplate.StructureBlockInfo pBlockInfo, StructureTemplate.StructureBlockInfo pRelativeBlockInfo, StructurePlaceSettings pSettings) - Overrides:
processBlock
in classStructureProcessor
-
maybeReplaceFullStoneBlock
-
maybeReplaceStairs
-
maybeReplaceSlab
-
maybeReplaceWall
-
maybeReplaceObsidian
-
getRandomFacingStairs
-
getRandomBlock
private BlockState getRandomBlock(RandomSource pRandom, BlockState[] pNormalStates, BlockState[] pMossyStates) -
getRandomBlock
-
getType
- Specified by:
getType
in classStructureProcessor
-