Class IntRangePredicate.Line
java.lang.Object
net.minecraft.world.level.storage.loot.IntRangePredicate.Line
- All Implemented Interfaces:
IntRangePredicate, Validatable
- Enclosing interface:
IntRangePredicate
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface IntRangePredicate
IntRangePredicate.Line, IntRangePredicate.Point -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<Holder<ContextIntProvider>> private final Optional<Holder<ContextIntProvider>> private final @Nullable IntRangePredicate.Line.IntCheckerFields inherited from interface IntRangePredicate
CODEC, LINE_CODEC, POINT_CODEC -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLine(Optional<Holder<ContextIntProvider>> min, Optional<Holder<ContextIntProvider>> max) -
Method Summary
Modifier and TypeMethodDescriptionprivate static @Nullable IntRangePredicate.Line.IntCheckerbooleantest(LootContext context, int input) booleantest(LootContext context, ContextIntProvider input) voidvalidate(ValidationContext context)
-
Field Details
-
min
-
max
-
predicate
-
-
Constructor Details
-
Line
-
-
Method Details
-
createPredicate
private static @Nullable IntRangePredicate.Line.IntChecker createPredicate(@Nullable Holder<ContextIntProvider> min, @Nullable Holder<ContextIntProvider> max) -
validate
- Specified by:
validatein interfaceValidatable
-
test
- Specified by:
testin interfaceIntRangePredicate
-
test
- Specified by:
testin interfaceIntRangePredicate
-