Class BlockMosinessProcessor
- java.lang.Object
-
- net.minecraft.world.gen.feature.template.StructureProcessor
-
- net.minecraft.world.gen.feature.template.BlockMosinessProcessor
-
public class BlockMosinessProcessor extends StructureProcessor
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<BlockMosinessProcessor>
CODEC
private float
mossiness
-
Constructor Summary
Constructors Constructor Description BlockMosinessProcessor(float p_i232115_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static BlockState
getRandomBlock(java.util.Random p_237068_0_, BlockState[] p_237068_1_)
private BlockState
getRandomBlock(java.util.Random p_237069_1_, BlockState[] p_237069_2_, BlockState[] p_237069_3_)
private static BlockState
getRandomFacingStairs(java.util.Random p_237066_0_, Block p_237066_1_)
protected IStructureProcessorType<?>
getType()
private BlockState
maybeReplaceFullStoneBlock(java.util.Random p_237065_1_)
private BlockState
maybeReplaceObsidian(java.util.Random p_237072_1_)
private BlockState
maybeReplaceSlab(java.util.Random p_237070_1_)
private BlockState
maybeReplaceStairs(java.util.Random p_237067_1_, BlockState p_237067_2_)
private BlockState
maybeReplaceWall(java.util.Random p_237071_1_)
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_)
-
Methods inherited from class net.minecraft.world.gen.feature.template.StructureProcessor
process, processEntity
-
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<BlockMosinessProcessor> CODEC
-
mossiness
private final float mossiness
-
-
Method Detail
-
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
@Nullable private BlockState maybeReplaceFullStoneBlock(java.util.Random p_237065_1_)
-
maybeReplaceStairs
@Nullable private BlockState maybeReplaceStairs(java.util.Random p_237067_1_, BlockState p_237067_2_)
-
maybeReplaceSlab
@Nullable private BlockState maybeReplaceSlab(java.util.Random p_237070_1_)
-
maybeReplaceWall
@Nullable private BlockState maybeReplaceWall(java.util.Random p_237071_1_)
-
maybeReplaceObsidian
@Nullable private BlockState maybeReplaceObsidian(java.util.Random p_237072_1_)
-
getRandomFacingStairs
private static BlockState getRandomFacingStairs(java.util.Random p_237066_0_, Block p_237066_1_)
-
getRandomBlock
private BlockState getRandomBlock(java.util.Random p_237069_1_, BlockState[] p_237069_2_, BlockState[] p_237069_3_)
-
getRandomBlock
private static BlockState getRandomBlock(java.util.Random p_237068_0_, BlockState[] p_237068_1_)
-
getType
protected IStructureProcessorType<?> getType()
- Specified by:
getType
in classStructureProcessor
-
-