Class WeightedStateProvider
java.lang.Object
net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
net.minecraft.world.level.levelgen.feature.stateproviders.WeightedStateProvider
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<WeightedStateProvider>
private final SimpleWeightedRandomList<BlockState>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.DataResult<WeightedStateProvider>
create
(SimpleWeightedRandomList<BlockState> p_161598_) getState
(RandomSource p_225966_, BlockPos p_225967_) protected BlockStateProviderType<?>
type()
Methods inherited from class net.minecraft.world.level.levelgen.feature.stateproviders.BlockStateProvider
simple, simple
-
Field Details
-
CODEC
-
weightedList
-
-
Constructor Details
-
WeightedStateProvider
-
WeightedStateProvider
-
-
Method Details
-
create
private static com.mojang.serialization.DataResult<WeightedStateProvider> create(SimpleWeightedRandomList<BlockState> p_161598_) -
type
- Specified by:
type
in classBlockStateProvider
-
getState
- Specified by:
getState
in classBlockStateProvider
-