类 NbtShapedRecipe
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
-
嵌套类概要
嵌套类 -
构造器概要
构造器构造器说明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 intfindFirstSymbol(String line) protected static intfindLastSymbol(String pattern) static net.minecraft.item.ItemStackgetItemStack(com.google.gson.JsonObject json) protected static String[]getPattern(com.google.gson.JsonArray json) net.minecraft.recipe.RecipeSerializer<?>static net.minecraft.item.ItemStackoutputFromJson(com.google.gson.JsonObject json) 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
-
findLastSymbol
-
getPattern
-
readSymbols
-
removePadding
-
createPatternMatrix
-
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
-