Class ShapedRecipeJsonBuilder

java.lang.Object
net.minecraft.data.server.recipe.ShapedRecipeJsonBuilder
All Implemented Interfaces:
CraftingRecipeJsonBuilder

public class ShapedRecipeJsonBuilder extends Object implements CraftingRecipeJsonBuilder
Mappings:
Namespace Name
official na
intermediary net/minecraft/class_2447
named net/minecraft/data/server/recipe/ShapedRecipeJsonBuilder
  • Field Details

    • category

      private final RecipeCategory category
      Mappings:
      Namespace Name Mixin selector
      official b Lna;b:Lmx;
      intermediary field_40645 Lnet/minecraft/class_2447;field_40645:Lnet/minecraft/class_7800;
      named category Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;category:Lnet/minecraft/recipe/book/RecipeCategory;
    • output

      private final Item output
      Mappings:
      Namespace Name Mixin selector
      official c Lna;c:Lcmt;
      intermediary field_11380 Lnet/minecraft/class_2447;field_11380:Lnet/minecraft/class_1792;
      named output Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;output:Lnet/minecraft/item/Item;
    • count

      private final int count
      Mappings:
      Namespace Name Mixin selector
      official d Lna;d:I
      intermediary field_11378 Lnet/minecraft/class_2447;field_11378:I
      named count Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;count:I
    • pattern

      private final List<String> pattern
      Mappings:
      Namespace Name Mixin selector
      official e Lna;e:Ljava/util/List;
      intermediary field_11377 Lnet/minecraft/class_2447;field_11377:Ljava/util/List;
      named pattern Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;pattern:Ljava/util/List;
    • inputs

      private final Map<Character,Ingredient> inputs
      Mappings:
      Namespace Name Mixin selector
      official f Lna;f:Ljava/util/Map;
      intermediary field_11376 Lnet/minecraft/class_2447;field_11376:Ljava/util/Map;
      named inputs Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;inputs:Ljava/util/Map;
    • criteria

      private final Map<String,AdvancementCriterion<?>> criteria
      Mappings:
      Namespace Name Mixin selector
      official g Lna;g:Ljava/util/Map;
      intermediary field_46149 Lnet/minecraft/class_2447;field_46149:Ljava/util/Map;
      named criteria Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;criteria:Ljava/util/Map;
    • group

      @Nullable private @Nullable String group
      Mappings:
      Namespace Name Mixin selector
      official h Lna;h:Ljava/lang/String;
      intermediary field_11381 Lnet/minecraft/class_2447;field_11381:Ljava/lang/String;
      named group Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;group:Ljava/lang/String;
    • showNotification

      private boolean showNotification
      Mappings:
      Namespace Name Mixin selector
      official i Lna;i:Z
      intermediary field_42956 Lnet/minecraft/class_2447;field_42956:Z
      named showNotification Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;showNotification:Z
  • Constructor Details

    • ShapedRecipeJsonBuilder

      public ShapedRecipeJsonBuilder(RecipeCategory category, ItemConvertible output, int count)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lna;<init>(Lmx;Lcto;I)V
      intermediary <init> Lnet/minecraft/class_2447;<init>(Lnet/minecraft/class_7800;Lnet/minecraft/class_1935;I)V
      named <init> Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;<init>(Lnet/minecraft/recipe/book/RecipeCategory;Lnet/minecraft/item/ItemConvertible;I)V
  • Method Details

    • create

      public static ShapedRecipeJsonBuilder create(RecipeCategory category, ItemConvertible output)
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Lmx;Lcto;)Lna;
      intermediary method_10437 Lnet/minecraft/class_2447;method_10437(Lnet/minecraft/class_7800;Lnet/minecraft/class_1935;)Lnet/minecraft/class_2447;
      named create Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;create(Lnet/minecraft/recipe/book/RecipeCategory;Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;
    • create

      public static ShapedRecipeJsonBuilder create(RecipeCategory category, ItemConvertible output, int count)
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Lmx;Lcto;I)Lna;
      intermediary method_10436 Lnet/minecraft/class_2447;method_10436(Lnet/minecraft/class_7800;Lnet/minecraft/class_1935;I)Lnet/minecraft/class_2447;
      named create Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;create(Lnet/minecraft/recipe/book/RecipeCategory;Lnet/minecraft/item/ItemConvertible;I)Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;
    • input

      public ShapedRecipeJsonBuilder input(Character c, TagKey<Item> tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Ljava/lang/Character;Lasw;)Lna;
      intermediary method_10433 Lnet/minecraft/class_2447;method_10433(Ljava/lang/Character;Lnet/minecraft/class_6862;)Lnet/minecraft/class_2447;
      named input Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;input(Ljava/lang/Character;Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;
    • input

      public ShapedRecipeJsonBuilder input(Character c, ItemConvertible itemProvider)
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Ljava/lang/Character;Lcto;)Lna;
      intermediary method_10434 Lnet/minecraft/class_2447;method_10434(Ljava/lang/Character;Lnet/minecraft/class_1935;)Lnet/minecraft/class_2447;
      named input Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;input(Ljava/lang/Character;Lnet/minecraft/item/ItemConvertible;)Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;
    • input

      public ShapedRecipeJsonBuilder input(Character c, Ingredient ingredient)
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Ljava/lang/Character;Lcpz;)Lna;
      intermediary method_10428 Lnet/minecraft/class_2447;method_10428(Ljava/lang/Character;Lnet/minecraft/class_1856;)Lnet/minecraft/class_2447;
      named input Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;input(Ljava/lang/Character;Lnet/minecraft/recipe/Ingredient;)Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;
    • pattern

      public ShapedRecipeJsonBuilder pattern(String patternStr)
      Mappings:
      Namespace Name Mixin selector
      official b Lna;b(Ljava/lang/String;)Lna;
      intermediary method_10439 Lnet/minecraft/class_2447;method_10439(Ljava/lang/String;)Lnet/minecraft/class_2447;
      named pattern Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;pattern(Ljava/lang/String;)Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;
    • criterion

      public ShapedRecipeJsonBuilder criterion(String string, AdvancementCriterion<?> advancementCriterion)
      Specified by:
      criterion in interface CraftingRecipeJsonBuilder
      Mappings:
      Namespace Name Mixin selector
      official b Lna;b(Ljava/lang/String;Lan;)Lna;
      intermediary method_10429 Lnet/minecraft/class_2447;method_10429(Ljava/lang/String;Lnet/minecraft/class_175;)Lnet/minecraft/class_2447;
      named criterion Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;criterion(Ljava/lang/String;Lnet/minecraft/advancement/AdvancementCriterion;)Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;
    • group

      Specified by:
      group in interface CraftingRecipeJsonBuilder
      Mappings:
      Namespace Name Mixin selector
      official c Lna;c(Ljava/lang/String;)Lna;
      intermediary method_10435 Lnet/minecraft/class_2447;method_10435(Ljava/lang/String;)Lnet/minecraft/class_2447;
      named group Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;group(Ljava/lang/String;)Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;
    • showNotification

      public ShapedRecipeJsonBuilder showNotification(boolean showNotification)
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Z)Lna;
      intermediary method_49380 Lnet/minecraft/class_2447;method_49380(Z)Lnet/minecraft/class_2447;
      named showNotification Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;showNotification(Z)Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;
    • getOutputItem

      public Item getOutputItem()
      Specified by:
      getOutputItem in interface CraftingRecipeJsonBuilder
      Mappings:
      Namespace Name Mixin selector
      official a Lmw;a()Lcmt;
      intermediary method_36441 Lnet/minecraft/class_5797;method_36441()Lnet/minecraft/class_1792;
      named getOutputItem Lnet/minecraft/data/server/recipe/CraftingRecipeJsonBuilder;getOutputItem()Lnet/minecraft/item/Item;
    • offerTo

      public void offerTo(RecipeExporter exporter, Identifier recipeId)
      Specified by:
      offerTo in interface CraftingRecipeJsonBuilder
      Mappings:
      Namespace Name Mixin selector
      official a Lmw;a(Lmy;Lahg;)V
      intermediary method_17972 Lnet/minecraft/class_5797;method_17972(Lnet/minecraft/class_8790;Lnet/minecraft/class_2960;)V
      named offerTo Lnet/minecraft/data/server/recipe/CraftingRecipeJsonBuilder;offerTo(Lnet/minecraft/data/server/recipe/RecipeExporter;Lnet/minecraft/util/Identifier;)V
    • validate

      private RawShapedRecipe validate(Identifier recipeId)
      Mappings:
      Namespace Name Mixin selector
      official a Lna;a(Lahg;)Lcqk;
      intermediary method_10432 Lnet/minecraft/class_2447;method_10432(Lnet/minecraft/class_2960;)Lnet/minecraft/class_8957;
      named validate Lnet/minecraft/data/server/recipe/ShapedRecipeJsonBuilder;validate(Lnet/minecraft/util/Identifier;)Lnet/minecraft/recipe/RawShapedRecipe;