public static class FishingRodHookedTrigger.Instance extends CriterionInstance
Modifier and Type | Field and Description |
---|---|
private EntityPredicate |
entity |
private ItemPredicate |
item |
private ItemPredicate |
rod |
Constructor and Description |
---|
Instance(ItemPredicate rod,
EntityPredicate entity,
ItemPredicate item) |
Modifier and Type | Method and Description |
---|---|
static FishingRodHookedTrigger.Instance |
create(ItemPredicate p_204829_0_,
EntityPredicate p_204829_1_,
ItemPredicate p_204829_2_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(ServerPlayerEntity p_204830_1_,
ItemStack p_204830_2_,
FishingBobberEntity p_204830_3_,
java.util.Collection<ItemStack> p_204830_4_) |
getId, toString
private final ItemPredicate rod
private final EntityPredicate entity
private final ItemPredicate item
public Instance(ItemPredicate rod, EntityPredicate entity, ItemPredicate item)
public static FishingRodHookedTrigger.Instance create(ItemPredicate p_204829_0_, EntityPredicate p_204829_1_, ItemPredicate p_204829_2_)
public boolean test(ServerPlayerEntity p_204830_1_, ItemStack p_204830_2_, FishingBobberEntity p_204830_3_, java.util.Collection<ItemStack> p_204830_4_)
public com.google.gson.JsonElement serialize()