Class TameAnimalTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.TameAnimalTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
- TameAnimalTrigger
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_298799_, Optional<ContextAwarePredicate> p_299073_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(LootContext p_68853_) com.google.gson.JsonObject
tamedAnimal
(EntityPredicate.Builder p_299185_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
entity
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_298799_, Optional<ContextAwarePredicate> p_299073_)
-
-
Method Details
-
tamedAnimal
-
tamedAnimal
public static Criterion<TameAnimalTrigger.TriggerInstance> tamedAnimal(EntityPredicate.Builder p_299185_) -
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-