Interface ConstantInt
- All Superinterfaces:
Comparable<ValueProvider>, IntProvider, ValueProvider, Wrapper
A constant int provider which always returns the same value.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface IntProvider
IntProvider.IntProviderBuilder<T,S> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConstantIntA constant int provider which always returns 0. -
Method Summary
Static MethodsMethods inherited from interface IntProvider
clamp, max, maxInclusive, min, minInclusiveMethods inherited from interface ValueProvider
compareToMethods inherited from interface Wrapper
asHandle, toMinecraft, unwrap
-
Field Details
-
ZERO
A constant int provider which always returns 0.
-
-
Method Details
-
of
A constant int provider.- Parameters:
value- the value to return- Returns:
- the constant int provider
- Since:
- 3.0.0
-