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