Class BrewedPotionTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.BrewedPotionTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- BrewedPotionTrigger
public static class BrewedPotionTrigger.Instance extends CriterionInstance
-
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231487_1_, Potion p_i231487_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BrewedPotionTrigger.Instance
brewedPotion()
boolean
matches(Potion p_192250_1_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
potion
private final Potion potion
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231487_1_, @Nullable Potion p_i231487_2_)
-
-
Method Detail
-
brewedPotion
public static BrewedPotionTrigger.Instance brewedPotion()
-
matches
public boolean matches(Potion p_192250_1_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-