Interface RotatedBlockProvider
- All Superinterfaces:
BlockStateProvider, Wrapper
Supplies block states from another provider and rotates their directional properties.
- Since:
- 3.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe fixed direction used for rotation, or an empty value to choose a random direction.static RotatedBlockProviderof(BlockStateProvider state, Optional<BlockFace> direction) Creates a new rotated block provider.static RotatedBlockProviderCreates a provider that randomly rotates the supplied material.state()The provider supplying the state to rotate.Methods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Method Details
-
state
The provider supplying the state to rotate.- Returns:
- the nested block state provider
- Since:
- 4.0.0
-
direction
-
of
@AsOf("4.0.0") static RotatedBlockProvider of(BlockStateProvider state, Optional<BlockFace> direction) Creates a new rotated block provider.- Parameters:
state- the provider supplying the state to rotatedirection- the fixed direction, or an empty value to choose one randomly- Returns:
- a new rotated block provider
- Since:
- 4.0.0
-
of
Creates a provider that randomly rotates the supplied material.- Parameters:
state- the material to supply and rotate- Returns:
- a new rotated block provider
- Since:
- 3.0.0
-