Class RecipeUnlockedCriterion.Conditions

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

public static class RecipeUnlockedCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official cs$a
intermediary net/minecraft/class_2119$class_2121
named net/minecraft/advancement/criterion/RecipeUnlockedCriterion$Conditions
  • Field Details

    • recipe

      private final Identifier recipe
      Mappings:
      Namespace Name Mixin selector
      official a Lcs$a;a:Lacq;
      intermediary field_9742 Lnet/minecraft/class_2119$class_2121;field_9742:Lnet/minecraft/class_2960;
      named recipe Lnet/minecraft/advancement/criterion/RecipeUnlockedCriterion$Conditions;recipe:Lnet/minecraft/util/Identifier;
  • Constructor Details

    • Conditions

      public Conditions(LootContextPredicate player, Identifier recipe)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcs$a;<init>(Lba;Lacq;)V
      intermediary <init> Lnet/minecraft/class_2119$class_2121;<init>(Lnet/minecraft/class_5258;Lnet/minecraft/class_2960;)V
      named <init> Lnet/minecraft/advancement/criterion/RecipeUnlockedCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/LootContextPredicate;Lnet/minecraft/util/Identifier;)V
  • Method Details

    • 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;
    • matches

      public boolean matches(Recipe<?> recipe)
      Mappings:
      Namespace Name Mixin selector
      official a Lcs$a;a(Lciv;)Z
      intermediary method_9112 Lnet/minecraft/class_2119$class_2121;method_9112(Lnet/minecraft/class_1860;)Z
      named matches Lnet/minecraft/advancement/criterion/RecipeUnlockedCriterion$Conditions;matches(Lnet/minecraft/recipe/Recipe;)Z