Class BrewedPotionCriterion.Conditions

java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterionConditions
net.minecraft.advancement.criterion.BrewedPotionCriterion.Conditions
All Implemented Interfaces:
CriterionConditions
Enclosing class:
BrewedPotionCriterion

public static class BrewedPotionCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official aw$a
intermediary net/minecraft/class_1996$class_1998
named net/minecraft/advancement/criterion/BrewedPotionCriterion$Conditions
  • Field Details

    • potion

      @Nullable private final @Nullable Potion potion
      Mappings:
      Namespace Name Mixin selector
      official a Law$a;a:Lcbv;
      intermediary field_9492 Lnet/minecraft/class_1996$class_1998;field_9492:Lnet/minecraft/class_1842;
      named potion Lnet/minecraft/advancement/criterion/BrewedPotionCriterion$Conditions;potion:Lnet/minecraft/potion/Potion;
  • Constructor Details

    • Conditions

      public Conditions(EntityPredicate.Extended player, @Nullable @Nullable Potion potion)
      Mappings:
      Namespace Name Mixin selector
      official <init> Law$a;<init>(Lbo$b;Lcbv;)V
      intermediary <init> Lnet/minecraft/class_1996$class_1998;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_1842;)V
      named <init> Lnet/minecraft/advancement/criterion/BrewedPotionCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/potion/Potion;)V
  • Method Details

    • any

      public static BrewedPotionCriterion.Conditions any()
      Mappings:
      Namespace Name Mixin selector
      official c Law$a;c()Law$a;
      intermediary method_8791 Lnet/minecraft/class_1996$class_1998;method_8791()Lnet/minecraft/class_1996$class_1998;
      named any Lnet/minecraft/advancement/criterion/BrewedPotionCriterion$Conditions;any()Lnet/minecraft/advancement/criterion/BrewedPotionCriterion$Conditions;
    • matches

      public boolean matches(Potion potion)
      Mappings:
      Namespace Name Mixin selector
      official a Law$a;a(Lcbv;)Z
      intermediary method_8790 Lnet/minecraft/class_1996$class_1998;method_8790(Lnet/minecraft/class_1842;)Z
      named matches Lnet/minecraft/advancement/criterion/BrewedPotionCriterion$Conditions;matches(Lnet/minecraft/potion/Potion;)Z
    • toJson

      public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lan;a(Lct;)Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson(Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonObject;