Class BredAnimalsTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.BredAnimalsTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- BredAnimalsTrigger
public static class BredAnimalsTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private EntityPredicate.AndPredicate
child
private EntityPredicate.AndPredicate
parent
private EntityPredicate.AndPredicate
partner
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231484_1_, EntityPredicate.AndPredicate p_i231484_2_, EntityPredicate.AndPredicate p_i231484_3_, EntityPredicate.AndPredicate p_i231484_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BredAnimalsTrigger.Instance
bredAnimals()
static BredAnimalsTrigger.Instance
bredAnimals(EntityPredicate.Builder p_203909_0_)
static BredAnimalsTrigger.Instance
bredAnimals(EntityPredicate p_241332_0_, EntityPredicate p_241332_1_, EntityPredicate p_241332_2_)
boolean
matches(LootContext p_233511_1_, LootContext p_233511_2_, LootContext p_233511_3_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
parent
private final EntityPredicate.AndPredicate parent
-
partner
private final EntityPredicate.AndPredicate partner
-
child
private final EntityPredicate.AndPredicate child
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231484_1_, EntityPredicate.AndPredicate p_i231484_2_, EntityPredicate.AndPredicate p_i231484_3_, EntityPredicate.AndPredicate p_i231484_4_)
-
-
Method Detail
-
bredAnimals
public static BredAnimalsTrigger.Instance bredAnimals()
-
bredAnimals
public static BredAnimalsTrigger.Instance bredAnimals(EntityPredicate.Builder p_203909_0_)
-
bredAnimals
public static BredAnimalsTrigger.Instance bredAnimals(EntityPredicate p_241332_0_, EntityPredicate p_241332_1_, EntityPredicate p_241332_2_)
-
matches
public boolean matches(LootContext p_233511_1_, LootContext p_233511_2_, @Nullable LootContext p_233511_3_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-