Class WeightedBlockStateProvider
java.lang.Object
net.minecraft.world.gen.blockstateprovider.BlockStateProvider
net.minecraft.world.gen.blockstateprovider.WeightedBlockStateProvider
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WeightedBlockStateProvider>
private final WeightedList<BlockState>
-
Constructor Summary
ModifierConstructorDescriptionprivate
WeightedBlockStateProvider
(WeightedList<BlockState> p_i225862_1_) -
Method Summary
Modifier and TypeMethodDescriptionadd
(BlockState p_227407_1_, int p_227407_2_) private static com.mojang.serialization.DataResult<WeightedBlockStateProvider>
create
(WeightedList<BlockState> p_236812_0_) protected BlockStateProviderType<?>
type()
-
Field Details
-
CODEC
-
weightedList
-
-
Constructor Details
-
WeightedBlockStateProvider
-
WeightedBlockStateProvider
public WeightedBlockStateProvider()
-
-
Method Details
-
create
private static com.mojang.serialization.DataResult<WeightedBlockStateProvider> create(WeightedList<BlockState> p_236812_0_) -
type
- Specified by:
type
in classBlockStateProvider
-
add
-
getState
- Specified by:
getState
in classBlockStateProvider
-