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 av$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 Lav$a;a:Lchw;
      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(LootContextPredicate player, @Nullable @Nullable Potion potion)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lav$a;<init>(Lba;Lchw;)V
      intermediary <init> Lnet/minecraft/class_1996$class_1998;<init>(Lnet/minecraft/class_5258;Lnet/minecraft/class_1842;)V
      named <init> Lnet/minecraft/advancement/criterion/BrewedPotionCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/LootContextPredicate;Lnet/minecraft/potion/Potion;)V
  • Method Details

    • any

      public static BrewedPotionCriterion.Conditions any()
      Mappings:
      Namespace Name Mixin selector
      official c Lav$a;c()Lav$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 Lav$a;a(Lchw;)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 Lam;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;