Class TameAnimalTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.TameAnimalTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- TameAnimalTrigger
public static class TameAnimalTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private EntityPredicate.AndPredicate
entity
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231963_1_, EntityPredicate.AndPredicate p_i231963_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(LootContext p_236323_1_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
static TameAnimalTrigger.Instance
tamedAnimal()
static TameAnimalTrigger.Instance
tamedAnimal(EntityPredicate p_215124_0_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
entity
private final EntityPredicate.AndPredicate entity
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231963_1_, EntityPredicate.AndPredicate p_i231963_2_)
-
-
Method Detail
-
tamedAnimal
public static TameAnimalTrigger.Instance tamedAnimal()
-
tamedAnimal
public static TameAnimalTrigger.Instance tamedAnimal(EntityPredicate p_215124_0_)
-
matches
public boolean matches(LootContext p_236323_1_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-