Interface LootModifierPredicate
- All Superinterfaces:
Predicate<LootModifierContext>
- All Known Implementing Classes:
AllOfPredicate,AnyOfPredicate,EntryItemPredicate,InvertedPredicate,TablePredicate
A loot modifier predicate
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for loot modifier predicates. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LootModifierPredicate>Codec containing the type id -
Method Summary
Modifier and TypeMethodDescriptiongetType()Returns the type of this action.booleantest(@NotNull LootModifierContext context) Tests this predicate against the provided context.
-
Field Details
-
CODEC
Codec containing the type id
-
-
Method Details
-
getType
LootModifierPredicateType getType()Returns the type of this action.- Returns:
- the
typeof this action.
-
test
Tests this predicate against the provided context.- Specified by:
testin interfacePredicate<LootModifierContext>- Parameters:
context- the context to match against- Returns:
- if this predicate matched the provided context
-