Class ChanneledLightningTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.ChanneledLightningTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- ChanneledLightningTrigger
public static class ChanneledLightningTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private EntityPredicate.AndPredicate[]
victims
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231493_1_, EntityPredicate.AndPredicate[] p_i231493_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChanneledLightningTrigger.Instance
channeledLightning(EntityPredicate... p_204824_0_)
boolean
matches(java.util.Collection<? extends LootContext> p_233676_1_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
victims
private final EntityPredicate.AndPredicate[] victims
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231493_1_, EntityPredicate.AndPredicate[] p_i231493_2_)
-
-
Method Detail
-
channeledLightning
public static ChanneledLightningTrigger.Instance channeledLightning(EntityPredicate... p_204824_0_)
-
matches
public boolean matches(java.util.Collection<? extends LootContext> p_233676_1_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-