Class SummonedEntityTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.SummonedEntityTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- SummonedEntityTrigger
public static class SummonedEntityTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private EntityPredicate.AndPredicate
entity
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231938_1_, EntityPredicate.AndPredicate p_i231938_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(LootContext p_236273_1_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
static SummonedEntityTrigger.Instance
summonedEntity(EntityPredicate.Builder p_203937_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_i231938_1_, EntityPredicate.AndPredicate p_i231938_2_)
-
-
Method Detail
-
summonedEntity
public static SummonedEntityTrigger.Instance summonedEntity(EntityPredicate.Builder p_203937_0_)
-
matches
public boolean matches(LootContext p_236273_1_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-