Interface WeightedStateProvider
- All Superinterfaces:
BlockStateProvider, Wrapper
A block state provider of weighted entries.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.entries()A weighted list entry of each block state.static WeightedStateProviderof(WeightedList<BlockData> entries) Creates a new weighted state provider.default WeightedStateProvider.BuilderConverts this object back to a builder.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
entries
A weighted list entry of each block state.- Returns:
- a weighted list of block states
- Since:
- 3.0.0
-
toBuilder
Converts this object back to a builder.- Returns:
- a builder with the same values as this object
- Since:
- 3.0.0
-
of
Creates a new weighted state provider.- Parameters:
entries- the weighted list of block states- Returns:
- a new weighted state provider
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-