Class FishingRodHookedTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.FishingRodHookedTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- FishingRodHookedTrigger
public static class FishingRodHookedTrigger.TriggerInstance
extends AbstractCriterionTriggerInstance
-
Field Summary
Modifier and TypeFieldDescriptionprivate EntityPredicate.Composite
private ItemPredicate
private ItemPredicate
-
Constructor Summary
ConstructorDescriptionTriggerInstance(EntityPredicate.Composite p_40439_, ItemPredicate p_40440_, EntityPredicate.Composite p_40441_, ItemPredicate p_40442_)
-
Method Summary
Modifier and TypeMethodDescriptionfishedItem(ItemPredicate p_40448_, EntityPredicate p_40449_, ItemPredicate p_40450_)
boolean
matches(ItemStack p_40444_, LootContext p_40445_, Collection<ItemStack> p_40446_)
com.google.gson.JsonObject
serializeToJson(SerializationContext p_40452_)
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
rod
-
entity
-
item
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(EntityPredicate.Composite p_40439_, ItemPredicate p_40440_, EntityPredicate.Composite p_40441_, ItemPredicate p_40442_)
-
-
Method Details
-
fishedItem
public static FishingRodHookedTrigger.TriggerInstance fishedItem(ItemPredicate p_40448_, EntityPredicate p_40449_, ItemPredicate p_40450_) -
matches
-
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-