Interface MinMaxBounds<T extends Number & Comparable<T>>
- All Known Implementing Classes:
MinMaxBounds.Doubles, MinMaxBounds.FloatDegrees, MinMaxBounds.Ints
public interface MinMaxBounds<T extends Number & Comparable<T>>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordMinMaxBounds.Bounds<T extends Number & Comparable<T>>static final recordstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Method Summary
Modifier and TypeMethodDescriptionbounds()default booleanisAny()max()min()static <V extends Number & Comparable<V>, B extends MinMaxBounds<V>>
Function<B, com.mojang.serialization.DataResult<B>> validateContainedInRange(MinMaxBounds<V> allowed)
-
Field Details
-
ERROR_EMPTY
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EMPTY -
ERROR_SWAPPED
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SWAPPED
-
-
Method Details
-
bounds
MinMaxBounds.Bounds<T> bounds() -
min
-
max
-
isAny
default boolean isAny() -
validateContainedInRange
static <V extends Number & Comparable<V>, B extends MinMaxBounds<V>> Function<B, com.mojang.serialization.DataResult<B>> validateContainedInRange(MinMaxBounds<V> allowed)
-