public static class FishingRodHookedCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private ItemPredicate |
caughtItem |
private EntityPredicate.Extended |
hookedEntity |
private ItemPredicate |
rod |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
ItemPredicate rod,
EntityPredicate.Extended hookedEntity,
ItemPredicate caughtItem) |
Modifier and Type | Method and Description |
---|---|
static FishingRodHookedCriterion.Conditions |
create(ItemPredicate rod,
EntityPredicate bobber,
ItemPredicate item) |
boolean |
test(ItemStack rod,
LootContext hookedEntityContext,
Collection<ItemStack> fishingLoots) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final ItemPredicate rod
private final EntityPredicate.Extended hookedEntity
private final ItemPredicate caughtItem
public Conditions(EntityPredicate.Extended player, ItemPredicate rod, EntityPredicate.Extended hookedEntity, ItemPredicate caughtItem)
public static FishingRodHookedCriterion.Conditions create(ItemPredicate rod, EntityPredicate bobber, ItemPredicate item)
public boolean test(ItemStack rod, LootContext hookedEntityContext, Collection<ItemStack> fishingLoots)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions