Class BredAnimalsTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.BredAnimalsTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
- BredAnimalsTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<ContextAwarePredicate>
private final Optional<ContextAwarePredicate>
private final Optional<ContextAwarePredicate>
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_300648_, Optional<ContextAwarePredicate> p_299824_, Optional<ContextAwarePredicate> p_299138_, Optional<ContextAwarePredicate> p_297646_) -
Method Summary
Modifier and TypeMethodDescriptionbredAnimals
(Optional<EntityPredicate> p_298213_, Optional<EntityPredicate> p_299258_, Optional<EntityPredicate> p_297439_) bredAnimals
(EntityPredicate.Builder p_18668_) private static boolean
matches
(Optional<ContextAwarePredicate> p_300266_, LootContext p_300903_) boolean
matches
(LootContext p_18676_, LootContext p_18677_, LootContext p_18678_) com.google.gson.JsonObject
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
parent
-
partner
-
child
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_300648_, Optional<ContextAwarePredicate> p_299824_, Optional<ContextAwarePredicate> p_299138_, Optional<ContextAwarePredicate> p_297646_)
-
-
Method Details
-
bredAnimals
-
bredAnimals
public static Criterion<BredAnimalsTrigger.TriggerInstance> bredAnimals(EntityPredicate.Builder p_18668_) -
bredAnimals
public static Criterion<BredAnimalsTrigger.TriggerInstance> bredAnimals(Optional<EntityPredicate> p_298213_, Optional<EntityPredicate> p_299258_, Optional<EntityPredicate> p_297439_) -
matches
-
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-