Class WeightedBlockStateProvider
- java.lang.Object
-
- net.minecraft.world.gen.blockstateprovider.BlockStateProvider
-
- net.minecraft.world.gen.blockstateprovider.WeightedBlockStateProvider
-
public class WeightedBlockStateProvider extends BlockStateProvider
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<WeightedBlockStateProvider>
CODEC
private WeightedList<BlockState>
weightedList
-
Constructor Summary
Constructors Modifier Constructor Description WeightedBlockStateProvider()
private
WeightedBlockStateProvider(WeightedList<BlockState> p_i225862_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WeightedBlockStateProvider
add(BlockState p_227407_1_, int p_227407_2_)
private static com.mojang.serialization.DataResult<WeightedBlockStateProvider>
create(WeightedList<BlockState> p_236812_0_)
BlockState
getState(java.util.Random p_225574_1_, BlockPos p_225574_2_)
protected BlockStateProviderType<?>
type()
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<WeightedBlockStateProvider> CODEC
-
weightedList
private final WeightedList<BlockState> weightedList
-
-
Constructor Detail
-
WeightedBlockStateProvider
private WeightedBlockStateProvider(WeightedList<BlockState> p_i225862_1_)
-
WeightedBlockStateProvider
public WeightedBlockStateProvider()
-
-
Method Detail
-
create
private static com.mojang.serialization.DataResult<WeightedBlockStateProvider> create(WeightedList<BlockState> p_236812_0_)
-
type
protected BlockStateProviderType<?> type()
- Specified by:
type
in classBlockStateProvider
-
add
public WeightedBlockStateProvider add(BlockState p_227407_1_, int p_227407_2_)
-
getState
public BlockState getState(java.util.Random p_225574_1_, BlockPos p_225574_2_)
- Specified by:
getState
in classBlockStateProvider
-
-