Interface IntRangePredicate
- All Superinterfaces:
Validatable
- All Known Implementing Classes:
IntRangePredicate.Line, IntRangePredicate.Point
public sealed interface IntRangePredicate
extends Validatable
permits IntRangePredicate.Point, IntRangePredicate.Line
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<IntRangePredicate> static final com.mojang.serialization.Codec<IntRangePredicate.Line> static final com.mojang.serialization.Codec<IntRangePredicate.Point> -
Method Summary
Modifier and TypeMethodDescriptionstatic IntRangePredicateexact(int value) static IntRangePredicatelowerBound(int value) static IntRangePredicaterange(int min, int max) booleantest(LootContext context, int input) default booleantest(LootContext context, ContextIntProvider input) static IntRangePredicateupperBound(int value) Methods inherited from interface Validatable
validate
-
Field Details
-
POINT_CODEC
-
LINE_CODEC
-
CODEC
-
-
Method Details
-
exact
-
range
-
lowerBound
-
upperBound
-
test
-
test
-