public class WeightedBlockStateProvider extends BlockStateProvider
Modifier and Type | Field and Description |
---|---|
private WeightedList<BlockState> |
weightedStates |
blockStateProvider
Modifier | Constructor and Description |
---|---|
|
WeightedBlockStateProvider() |
|
WeightedBlockStateProvider(com.mojang.datafixers.Dynamic<T> p_i225863_1_) |
private |
WeightedBlockStateProvider(WeightedList<BlockState> p_i225862_1_) |
Modifier and Type | Method and Description |
---|---|
WeightedBlockStateProvider |
addWeightedBlockstate(BlockState blockStateIn,
int weightIn) |
BlockState |
getBlockState(java.util.Random randomIn,
BlockPos blockPosIn) |
<T> T |
serialize(com.mojang.datafixers.types.DynamicOps<T> p_218175_1_) |
private final WeightedList<BlockState> weightedStates
private WeightedBlockStateProvider(WeightedList<BlockState> p_i225862_1_)
public WeightedBlockStateProvider()
public WeightedBlockStateProvider(com.mojang.datafixers.Dynamic<T> p_i225863_1_)
public WeightedBlockStateProvider addWeightedBlockstate(BlockState blockStateIn, int weightIn)
public BlockState getBlockState(java.util.Random randomIn, BlockPos blockPosIn)
getBlockState
in class BlockStateProvider
public <T> T serialize(com.mojang.datafixers.types.DynamicOps<T> p_218175_1_)