Class FishingRodHookedTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.FishingRodHookedTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
FishingRodHookedTrigger
public static class FishingRodHookedTrigger.TriggerInstance
extends AbstractCriterionTriggerInstance
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<ContextAwarePredicate>
private final Optional<ItemPredicate>
private final Optional<ItemPredicate>
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_299190_, Optional<ItemPredicate> p_298599_, Optional<ContextAwarePredicate> p_298872_, Optional<ItemPredicate> p_299028_) -
Method Summary
Modifier and TypeMethodDescriptionfishedItem
(Optional<ItemPredicate> p_298233_, Optional<EntityPredicate> p_298660_, Optional<ItemPredicate> p_298847_) boolean
matches
(ItemStack p_40444_, LootContext p_40445_, Collection<ItemStack> p_40446_) com.google.gson.JsonObject
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
rod
-
entity
-
item
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_299190_, Optional<ItemPredicate> p_298599_, Optional<ContextAwarePredicate> p_298872_, Optional<ItemPredicate> p_299028_)
-
-
Method Details
-
fishedItem
public static Criterion<FishingRodHookedTrigger.TriggerInstance> fishedItem(Optional<ItemPredicate> p_298233_, Optional<EntityPredicate> p_298660_, Optional<ItemPredicate> p_298847_) -
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-