Interface RandomizedIntStateProvider
- All Superinterfaces:
BlockStateProvider, Wrapper
Assigns a random value to an integer block property.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a new builder.static RandomizedIntStateProviderof(BlockStateProvider source, String property, IntProvider values) Creates a new randomized int block state provider.property()The name of a block property.source()Another block state provider that specifies the source of the block state.Converts this object back to a builder.values()The value of the block property.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
source
Another block state provider that specifies the source of the block state.- Returns:
- the source block state provider
- Since:
- 3.0.0
-
property
-
values
The value of the block property.- Returns:
- the value of the block property
- 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
@AsOf("3.0.0") static RandomizedIntStateProvider of(BlockStateProvider source, String property, IntProvider values) Creates a new randomized int block state provider.- Parameters:
source- the source block state providerproperty- the name of the block propertyvalues- the value of the block property- Returns:
- a new randomized int block state provider
- Since:
- 3.0.0
-
builder
Creates a new builder.- Returns:
- a new builder
- Since:
- 3.0.0
-