Interface ConstantHeight
- All Superinterfaces:
HeightProvider, Wrapper
A height provider which always resolves to a single fixed anchor.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface HeightProvider
HeightProvider.HeightProviderBuilder<T,S> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConstantHeightA constant height provider which always resolves to 0. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConstantHeightof(VerticalAnchor value) Creates a new constant height provider.value()The vertical anchor used as the constant height.Methods inherited from interface HeightProvider
maxInclusive, minInclusiveMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Field Details
-
ZERO
A constant height provider which always resolves to 0.
-
-
Method Details
-
value
The vertical anchor used as the constant height.- Returns:
- the constant anchor
- Since:
- 3.0.0
-
of
Creates a new constant height provider.- Parameters:
value- the vertical anchor to use as the constant height- Returns:
- the constant height provider
- Since:
- 3.0.0
-