Class RecipeUnlockedCriterion.Conditions

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

public static class RecipeUnlockedCriterion.Conditions extends AbstractCriterionConditions
Mappings:
Namespace Name
official cu$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 Lcu$a;a:Laew;
      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(Optional<LootContextPredicate> playerPredicate, Identifier recipe)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcu$a;<init>(Ljava/util/Optional;Laew;)V
      intermediary <init> Lnet/minecraft/class_2119$class_2121;<init>(Ljava/util/Optional;Lnet/minecraft/class_2960;)V
      named <init> Lnet/minecraft/advancement/criterion/RecipeUnlockedCriterion$Conditions;<init>(Ljava/util/Optional;Lnet/minecraft/util/Identifier;)V
  • Method Details

    • toJson

      public com.google.gson.JsonObject toJson()
      Specified by:
      toJson in interface CriterionConditions
      Overrides:
      toJson in class AbstractCriterionConditions
      Mappings:
      Namespace Name Mixin selector
      official a Lap;a()Lcom/google/gson/JsonObject;
      intermediary method_807 Lnet/minecraft/class_184;method_807()Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/advancement/criterion/CriterionConditions;toJson()Lcom/google/gson/JsonObject;
    • matches

      public boolean matches(RecipeEntry<?> recipeEntry)
      Mappings:
      Namespace Name Mixin selector
      official a Lcu$a;a(Lcmk;)Z
      intermediary method_9112 Lnet/minecraft/class_2119$class_2121;method_9112(Lnet/minecraft/class_8786;)Z
      named matches Lnet/minecraft/advancement/criterion/RecipeUnlockedCriterion$Conditions;matches(Lnet/minecraft/recipe/RecipeEntry;)Z