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 cr$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 Lcr$a;a:Ladd;
      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(EntityPredicate.Extended player, Identifier recipe)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcr$a;<init>(Lbn$b;Ladd;)V
      intermediary <init> Lnet/minecraft/class_2119$class_2121;<init>(Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_2960;)V
      named <init> Lnet/minecraft/advancement/criterion/RecipeUnlockedCriterion$Conditions;<init>(Lnet/minecraft/predicate/entity/EntityPredicate$Extended;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(Lcs;)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 Lcr$a;a(Lciy;)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