接口 SilkRecipeJsonBuilder
用于提供模组中常用但未提供更方便方法的配方生成方法
- 从以下版本开始:
- 0.1.0
-
方法概要
静态方法修饰符和类型方法说明static voidgenerateEquipRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient ingredient, EquipFamily family) static net.minecraft.recipe.Ingredientstatic net.minecraft.recipe.Ingredientstatic StringgetNamespace(net.minecraft.recipe.Ingredient input, net.minecraft.item.Item output) static StringgetSmithingItemPath(net.minecraft.item.ItemConvertible item) static StringgetSmithingSwapItemPath(net.minecraft.item.ItemConvertible item) static voidoffer2x2CompactingRecipeWithRecipeGroup(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.book.RecipeCategory category, net.minecraft.item.ItemConvertible input, net.minecraft.item.ItemConvertible output) static voidoffer2x2CrossCompactingRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.book.RecipeCategory category, net.minecraft.recipe.Ingredient base, net.minecraft.recipe.Ingredient add, net.minecraft.item.ItemConvertible output) static voidofferAxeRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item axe) static voidofferBlastingInOneJson(net.minecraft.data.server.recipe.RecipeExporter exporter, List<net.minecraft.item.ItemConvertible> inputs, net.minecraft.recipe.book.RecipeCategory category, net.minecraft.item.ItemConvertible output, float experience, int cookingTime, String group) static voidofferBootsRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item boots) static voidofferChestplateRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item chestplate) static voidofferCrossCompactingRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.book.RecipeCategory category, net.minecraft.recipe.Ingredient base, net.minecraft.recipe.Ingredient add, net.minecraft.item.ItemConvertible output) static voidofferHelmetRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item helmet) static voidofferHoeRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item hoe) static voidofferLeggingsRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item leggings) static voidofferPickaxeRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item pickaxe) static voidofferShovelRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item shovel) static voidofferSmeltingInOneJson(net.minecraft.data.server.recipe.RecipeExporter exporter, List<net.minecraft.item.ItemConvertible> inputs, net.minecraft.recipe.book.RecipeCategory category, net.minecraft.item.ItemConvertible output, float experience, int cookingTime, String group) static voidofferSmithingIngredient(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient base, net.minecraft.recipe.Ingredient addition, net.minecraft.recipe.book.RecipeCategory category, net.minecraft.item.Item result) static voidofferSwordRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item sword)
-
方法详细资料
-
generateEquipRecipe
@SilkApi static void generateEquipRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient ingredient, EquipFamily family) -
offer2x2CompactingRecipeWithRecipeGroup
@SilkApi static void offer2x2CompactingRecipeWithRecipeGroup(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.book.RecipeCategory category, net.minecraft.item.ItemConvertible input, net.minecraft.item.ItemConvertible output) -
offer2x2CrossCompactingRecipe
@SilkApi static void offer2x2CrossCompactingRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.book.RecipeCategory category, net.minecraft.recipe.Ingredient base, net.minecraft.recipe.Ingredient add, net.minecraft.item.ItemConvertible output) -
offerCrossCompactingRecipe
@SilkApi static void offerCrossCompactingRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.book.RecipeCategory category, net.minecraft.recipe.Ingredient base, net.minecraft.recipe.Ingredient add, net.minecraft.item.ItemConvertible output) -
offerShovelRecipe
@SilkApi static void offerShovelRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item shovel) -
offerPickaxeRecipe
@SilkApi static void offerPickaxeRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item pickaxe) -
offerAxeRecipe
@SilkApi static void offerAxeRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item axe) -
offerHoeRecipe
@SilkApi static void offerHoeRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item hoe) -
offerSwordRecipe
@SilkApi static void offerSwordRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item sword) -
offerHelmetRecipe
@SilkApi static void offerHelmetRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item helmet) -
offerChestplateRecipe
@SilkApi static void offerChestplateRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item chestplate) -
offerLeggingsRecipe
@SilkApi static void offerLeggingsRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item leggings) -
offerBootsRecipe
@SilkApi static void offerBootsRecipe(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient input, net.minecraft.item.Item boots) -
offerSmithingIngredient
@SilkApi static void offerSmithingIngredient(net.minecraft.data.server.recipe.RecipeExporter exporter, net.minecraft.recipe.Ingredient base, net.minecraft.recipe.Ingredient addition, net.minecraft.recipe.book.RecipeCategory category, net.minecraft.item.Item result) -
offerSmeltingInOneJson
-
offerBlastingInOneJson
-
getSmithingItemPath
-
getSmithingSwapItemPath
-
getNamespace
@Internal static String getNamespace(net.minecraft.recipe.Ingredient input, net.minecraft.item.Item output) -
getInput
-
getInput
@Internal static net.minecraft.recipe.Ingredient getInput(List<net.minecraft.recipe.Ingredient> inputs)
-