java.lang.Object
net.minecraft.recipe.ShapedRecipe
pers.saikel0rado1iu.silk.api.registry.gen.data.recipe.NbtShapedRecipe
所有已实现的接口:
net.minecraft.recipe.CraftingRecipe, net.minecraft.recipe.Recipe<net.minecraft.inventory.RecipeInputInventory>

public class NbtShapedRecipe extends net.minecraft.recipe.ShapedRecipe

用于带 NBT 的有序合成配方

从以下版本开始:
0.1.0
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static class 
     
  • 构造器概要

    构造器
    构造器
    说明
    NbtShapedRecipe(net.minecraft.util.Identifier id, String group, net.minecraft.recipe.book.CraftingRecipeCategory category, int width, int height, net.minecraft.util.collection.DefaultedList<net.minecraft.recipe.Ingredient> input, net.minecraft.item.ItemStack output, boolean showNotification)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected static net.minecraft.util.collection.DefaultedList<net.minecraft.recipe.Ingredient>
    createPatternMatrix(String[] pattern, Map<String,net.minecraft.recipe.Ingredient> symbols, int width, int height)
     
    protected static int
     
    protected static int
     
    static net.minecraft.item.ItemStack
    getItemStack(com.google.gson.JsonObject json)
     
    protected static String[]
    getPattern(com.google.gson.JsonArray json)
     
    net.minecraft.recipe.RecipeSerializer<?>
     
    static net.minecraft.item.ItemStack
    outputFromJson(com.google.gson.JsonObject json)
     
    protected static Map<String,net.minecraft.recipe.Ingredient>
    readSymbols(com.google.gson.JsonObject json)
     
    protected static String[]
    removePadding(String... pattern)
     

    从类继承的方法 net.minecraft.recipe.ShapedRecipe

    craft, fits, getCategory, getGroup, getHeight, getId, getIngredients, getItem, getOutput, getWidth, isEmpty, matches, showNotification

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 net.minecraft.recipe.CraftingRecipe

    getType

    从接口继承的方法 net.minecraft.recipe.Recipe

    createIcon, getRemainder, isIgnoredInRecipeBook
  • 构造器详细资料

    • NbtShapedRecipe

      public NbtShapedRecipe(net.minecraft.util.Identifier id, String group, net.minecraft.recipe.book.CraftingRecipeCategory category, int width, int height, net.minecraft.util.collection.DefaultedList<net.minecraft.recipe.Ingredient> input, net.minecraft.item.ItemStack output, boolean showNotification)
  • 方法详细资料

    • findFirstSymbol

      protected static int findFirstSymbol(String line)
    • findLastSymbol

      protected static int findLastSymbol(String pattern)
    • getPattern

      protected static String[] getPattern(com.google.gson.JsonArray json)
    • readSymbols

      protected static Map<String,net.minecraft.recipe.Ingredient> readSymbols(com.google.gson.JsonObject json)
    • removePadding

      protected static String[] removePadding(String... pattern)
    • createPatternMatrix

      protected static net.minecraft.util.collection.DefaultedList<net.minecraft.recipe.Ingredient> createPatternMatrix(String[] pattern, Map<String,net.minecraft.recipe.Ingredient> symbols, int width, int height)
    • outputFromJson

      public static net.minecraft.item.ItemStack outputFromJson(com.google.gson.JsonObject json)
    • getItemStack

      public static net.minecraft.item.ItemStack getItemStack(com.google.gson.JsonObject json)
    • getSerializer

      public net.minecraft.recipe.RecipeSerializer<?> getSerializer()
      指定者:
      getSerializer 在接口中 net.minecraft.recipe.Recipe<net.minecraft.inventory.RecipeInputInventory>
      覆盖:
      getSerializer 在类中 net.minecraft.recipe.ShapedRecipe