Class ShapedRecipeJsonFactory.ShapedRecipeJsonProvider

java.lang.Object
net.minecraft.data.server.recipe.ShapedRecipeJsonFactory.ShapedRecipeJsonProvider
All Implemented Interfaces:
RecipeJsonProvider
Enclosing class:
ShapedRecipeJsonFactory

class ShapedRecipeJsonFactory.ShapedRecipeJsonProvider
extends Object
implements RecipeJsonProvider
Mappings:
Namespace Name
official jp$a
intermediary net/minecraft/class_2447$class_2448
named net/minecraft/data/server/recipe/ShapedRecipeJsonFactory$ShapedRecipeJsonProvider
  • Field Details

    • recipeId

      private final Identifier recipeId
      Mappings:
      Namespace Name Mixin selector
      official b Ljp$a;b:Lwb;
      intermediary field_11385 Lnet/minecraft/class_2447$class_2448;field_11385:Lnet/minecraft/class_2960;
      named recipeId Lnet/minecraft/data/server/recipe/ShapedRecipeJsonFactory$ShapedRecipeJsonProvider;recipeId:Lnet/minecraft/util/Identifier;
    • output

      private final Item output
      Mappings:
      Namespace Name Mixin selector
      official c Ljp$a;c:Lbnr;
      intermediary field_11383 Lnet/minecraft/class_2447$class_2448;field_11383:Lnet/minecraft/class_1792;
      named output Lnet/minecraft/data/server/recipe/ShapedRecipeJsonFactory$ShapedRecipeJsonProvider;output:Lnet/minecraft/item/Item;
    • resultCount

      private final int resultCount
      Mappings:
      Namespace Name Mixin selector
      official d Ljp$a;d:I
      intermediary field_11386 Lnet/minecraft/class_2447$class_2448;field_11386:I
      named resultCount Lnet/minecraft/data/server/recipe/ShapedRecipeJsonFactory$ShapedRecipeJsonProvider;resultCount:I
    • group

      private final String group
      Mappings:
      Namespace Name Mixin selector
      official e Ljp$a;e:Ljava/lang/String;
      intermediary field_11387 Lnet/minecraft/class_2447$class_2448;field_11387:Ljava/lang/String;
      named group Lnet/minecraft/data/server/recipe/ShapedRecipeJsonFactory$ShapedRecipeJsonProvider;group:Ljava/lang/String;
    • pattern

      private final List<String> pattern
      Mappings:
      Namespace Name Mixin selector
      official f Ljp$a;f:Ljava/util/List;
      intermediary field_11384 Lnet/minecraft/class_2447$class_2448;field_11384:Ljava/util/List;
      named pattern Lnet/minecraft/data/server/recipe/ShapedRecipeJsonFactory$ShapedRecipeJsonProvider;pattern:Ljava/util/List;
    • inputs

      private final Map<Character,​Ingredient> inputs
      Mappings:
      Namespace Name Mixin selector
      official g Ljp$a;g:Ljava/util/Map;
      intermediary field_11388 Lnet/minecraft/class_2447$class_2448;field_11388:Ljava/util/Map;
      named inputs Lnet/minecraft/data/server/recipe/ShapedRecipeJsonFactory$ShapedRecipeJsonProvider;inputs:Ljava/util/Map;
    • builder

      private final Advancement.Task builder
      Mappings:
      Namespace Name Mixin selector
      official h Ljp$a;h:Ly$a;
      intermediary field_11389 Lnet/minecraft/class_2447$class_2448;field_11389:Lnet/minecraft/class_161$class_162;
      named builder Lnet/minecraft/data/server/recipe/ShapedRecipeJsonFactory$ShapedRecipeJsonProvider;builder:Lnet/minecraft/advancement/Advancement$Task;
    • advancementId

      private final Identifier advancementId
      Mappings:
      Namespace Name Mixin selector
      official i Ljp$a;i:Lwb;
      intermediary field_11390 Lnet/minecraft/class_2447$class_2448;field_11390:Lnet/minecraft/class_2960;
      named advancementId Lnet/minecraft/data/server/recipe/ShapedRecipeJsonFactory$ShapedRecipeJsonProvider;advancementId:Lnet/minecraft/util/Identifier;
  • Constructor Details

    • ShapedRecipeJsonProvider

      public ShapedRecipeJsonProvider​(Identifier recipeId, Item output, int outputCount, String group, List<String> pattern, Map<Character,​Ingredient> inputs, Advancement.Task builder, Identifier advancementId)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ljp$a;<init>(Ljp;Lwb;Lbnr;ILjava/lang/String;Ljava/util/List;Ljava/util/Map;Ly$a;Lwb;)V
      intermediary <init> Lnet/minecraft/class_2447$class_2448;<init>(Lnet/minecraft/class_2447;Lnet/minecraft/class_2960;Lnet/minecraft/class_1792;ILjava/lang/String;Ljava/util/List;Ljava/util/Map;Lnet/minecraft/class_161$class_162;Lnet/minecraft/class_2960;)V
      named <init> Lnet/minecraft/data/server/recipe/ShapedRecipeJsonFactory$ShapedRecipeJsonProvider;<init>(Lnet/minecraft/data/server/recipe/ShapedRecipeJsonFactory;Lnet/minecraft/util/Identifier;Lnet/minecraft/item/Item;ILjava/lang/String;Ljava/util/List;Ljava/util/Map;Lnet/minecraft/advancement/Advancement$Task;Lnet/minecraft/util/Identifier;)V
  • Method Details

    • serialize

      public void serialize​(JsonObject json)
      Specified by:
      serialize in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ljm;a(Lcom/google/gson/JsonObject;)V
      intermediary method_10416 Lnet/minecraft/class_2444;method_10416(Lcom/google/gson/JsonObject;)V
      named serialize Lnet/minecraft/data/server/recipe/RecipeJsonProvider;serialize(Lcom/google/gson/JsonObject;)V
    • getSerializer

      public RecipeSerializer<?> getSerializer()
      Specified by:
      getSerializer in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official c Ljm;c()Lbqp;
      intermediary method_17800 Lnet/minecraft/class_2444;method_17800()Lnet/minecraft/class_1865;
      named getSerializer Lnet/minecraft/data/server/recipe/RecipeJsonProvider;getSerializer()Lnet/minecraft/recipe/RecipeSerializer;
    • getRecipeId

      public Identifier getRecipeId()
      Specified by:
      getRecipeId in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official b Ljm;b()Lwb;
      intermediary method_10417 Lnet/minecraft/class_2444;method_10417()Lnet/minecraft/class_2960;
      named getRecipeId Lnet/minecraft/data/server/recipe/RecipeJsonProvider;getRecipeId()Lnet/minecraft/util/Identifier;
    • toAdvancementJson

      @Nullable public JsonObject toAdvancementJson()
      Specified by:
      toAdvancementJson in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official d Ljm;d()Lcom/google/gson/JsonObject;
      intermediary method_10415 Lnet/minecraft/class_2444;method_10415()Lcom/google/gson/JsonObject;
      named toAdvancementJson Lnet/minecraft/data/server/recipe/RecipeJsonProvider;toAdvancementJson()Lcom/google/gson/JsonObject;
    • getAdvancementId

      @Nullable public Identifier getAdvancementId()
      Specified by:
      getAdvancementId in interface RecipeJsonProvider
      Mappings:
      Namespace Name Mixin selector
      official e Ljm;e()Lwb;
      intermediary method_10418 Lnet/minecraft/class_2444;method_10418()Lnet/minecraft/class_2960;
      named getAdvancementId Lnet/minecraft/data/server/recipe/RecipeJsonProvider;getAdvancementId()Lnet/minecraft/util/Identifier;