Class BlockMosinessProcessor
java.lang.Object
net.minecraft.world.gen.feature.template.StructureProcessor
net.minecraft.world.gen.feature.template.BlockMosinessProcessor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BlockMosinessProcessor>
private final float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static BlockState
getRandomBlock
(Random p_237068_0_, BlockState[] p_237068_1_) private BlockState
getRandomBlock
(Random p_237069_1_, BlockState[] p_237069_2_, BlockState[] p_237069_3_) private static BlockState
getRandomFacingStairs
(Random p_237066_0_, Block p_237066_1_) protected IStructureProcessorType<?>
getType()
private BlockState
maybeReplaceFullStoneBlock
(Random p_237065_1_) private BlockState
maybeReplaceObsidian
(Random p_237072_1_) private BlockState
maybeReplaceSlab
(Random p_237070_1_) private BlockState
maybeReplaceStairs
(Random p_237067_1_, BlockState p_237067_2_) private BlockState
maybeReplaceWall
(Random p_237071_1_) processBlock
(IWorldReader p_230386_1_, BlockPos p_230386_2_, BlockPos p_230386_3_, Template.BlockInfo p_230386_4_, Template.BlockInfo p_230386_5_, PlacementSettings p_230386_6_) Methods inherited from class net.minecraft.world.gen.feature.template.StructureProcessor
process, processEntity
-
Field Details
-
CODEC
-
mossiness
private final float mossiness
-
-
Constructor Details
-
BlockMosinessProcessor
public BlockMosinessProcessor(float p_i232115_1_)
-
-
Method Details
-
processBlock
@Nullable public Template.BlockInfo processBlock(IWorldReader p_230386_1_, BlockPos p_230386_2_, BlockPos p_230386_3_, Template.BlockInfo p_230386_4_, Template.BlockInfo p_230386_5_, PlacementSettings p_230386_6_) - Overrides:
processBlock
in classStructureProcessor
-
maybeReplaceFullStoneBlock
-
maybeReplaceStairs
-
maybeReplaceSlab
-
maybeReplaceWall
-
maybeReplaceObsidian
-
getRandomFacingStairs
-
getRandomBlock
private BlockState getRandomBlock(Random p_237069_1_, BlockState[] p_237069_2_, BlockState[] p_237069_3_) -
getRandomBlock
-
getType
- Specified by:
getType
in classStructureProcessor
-