public static class FishingRodHookedCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private ItemPredicate |
caughtItem |
private EntityPredicate |
hookedEntity |
private ItemPredicate |
rod |
Constructor and Description |
---|
Conditions(ItemPredicate rod,
EntityPredicate bobber,
ItemPredicate item) |
Modifier and Type | Method and Description |
---|---|
static FishingRodHookedCriterion.Conditions |
create(ItemPredicate rod,
EntityPredicate bobber,
ItemPredicate item) |
boolean |
matches(ServerPlayerEntity serverPlayerEntity,
ItemStack rodStack,
FishingBobberEntity fishingBobberEntity,
Collection<ItemStack> fishingLoots) |
JsonElement |
toJson() |
getId, toString
private final ItemPredicate rod
private final EntityPredicate hookedEntity
private final ItemPredicate caughtItem
public Conditions(ItemPredicate rod, EntityPredicate bobber, ItemPredicate item)
public static FishingRodHookedCriterion.Conditions create(ItemPredicate rod, EntityPredicate bobber, ItemPredicate item)
public boolean matches(ServerPlayerEntity serverPlayerEntity, ItemStack rodStack, FishingBobberEntity fishingBobberEntity, Collection<ItemStack> fishingLoots)
public JsonElement toJson()