public class BlockAgeStructureProcessor extends StructureProcessor
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<BlockAgeStructureProcessor> |
CODEC |
private float |
mossiness |
Constructor and Description |
---|
BlockAgeStructureProcessor(float mossiness) |
Modifier and Type | Method and Description |
---|---|
protected StructureProcessorType<?> |
getType() |
private BlockState |
process(Random random,
BlockState[] regularStates,
BlockState[] mossyStates) |
Structure.StructureBlockInfo |
process(WorldView worldView,
BlockPos pos,
BlockPos blockPos,
Structure.StructureBlockInfo structureBlockInfo,
Structure.StructureBlockInfo structureBlockInfo2,
StructurePlacementData structurePlacementData) |
private BlockState |
processBlocks(Random random) |
private BlockState |
processObsidian(Random random) |
private BlockState |
processSlabs(Random random) |
private BlockState |
processStairs(Random random,
BlockState state) |
private BlockState |
processWalls(Random random) |
private static BlockState |
randomStairProperties(Random random,
Block stairs) |
private static BlockState |
randomState(Random random,
BlockState[] states) |
public static final com.mojang.serialization.Codec<BlockAgeStructureProcessor> CODEC
private final float mossiness
@Nullable public Structure.StructureBlockInfo process(WorldView worldView, BlockPos pos, BlockPos blockPos, Structure.StructureBlockInfo structureBlockInfo, Structure.StructureBlockInfo structureBlockInfo2, StructurePlacementData structurePlacementData)
process
in class StructureProcessor
@Nullable private BlockState processBlocks(Random random)
@Nullable private BlockState processStairs(Random random, BlockState state)
@Nullable private BlockState processSlabs(Random random)
@Nullable private BlockState processWalls(Random random)
@Nullable private BlockState processObsidian(Random random)
private static BlockState randomStairProperties(Random random, Block stairs)
private BlockState process(Random random, BlockState[] regularStates, BlockState[] mossyStates)
private static BlockState randomState(Random random, BlockState[] states)
protected StructureProcessorType<?> getType()
getType
in class StructureProcessor