public class WeightedBlockStateProvider extends BlockStateProvider
Modifier and Type | Field and Description |
---|---|
private WeightedList<BlockState> |
states |
stateProvider
Modifier | Constructor and Description |
---|---|
|
WeightedBlockStateProvider() |
|
WeightedBlockStateProvider(com.mojang.datafixers.Dynamic<T> configDeserializer) |
private |
WeightedBlockStateProvider(WeightedList<BlockState> states) |
Modifier and Type | Method and Description |
---|---|
WeightedBlockStateProvider |
addState(BlockState state,
int weight) |
BlockState |
getBlockState(Random random,
BlockPos pos) |
<T> T |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
private final WeightedList<BlockState> states
private WeightedBlockStateProvider(WeightedList<BlockState> states)
public WeightedBlockStateProvider()
public WeightedBlockStateProvider(com.mojang.datafixers.Dynamic<T> configDeserializer)
public WeightedBlockStateProvider addState(BlockState state, int weight)
public BlockState getBlockState(Random random, BlockPos pos)
getBlockState
in class BlockStateProvider
public <T> T serialize(com.mojang.datafixers.types.DynamicOps<T> ops)