接口 InfusionExtAPI.RecipeNBTBehavior
- 封闭接口:
- InfusionExtAPI
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Decides how the NBT tag should transfer from input item (thing on center pedestal) to output item.
Contains two useful defaults:
mergeNBT(Set) and vanilla()-
方法概要
修饰符和类型方法说明net.minecraft.item.ItemStackgetRecipeOutput(thaumcraft.api.crafting.InfusionRecipe recipe, net.minecraft.item.ItemStack input, net.minecraft.item.ItemStack output) Do post-output modification of recipe.mergeNBT()Shorthand formergeNBT(null)Recursively merge all NBT tags from center input item.vanilla()Use vanilla behavior, i.e. pass through original output.
-
方法详细资料
-
getRecipeOutput
net.minecraft.item.ItemStack getRecipeOutput(thaumcraft.api.crafting.InfusionRecipe recipe, net.minecraft.item.ItemStack input, net.minecraft.item.ItemStack output) Do post-output modification of recipe. NOTE: it's not specified as when this will be run. This is an implementation subject to change without notice.- 参数:
recipe- the original recipe instanceinput- the current inputoutput- the original output returned fromInfusionRecipe.getRecipeOutput(ItemStack). NOTE: for most implementations this is the ItemStack instance stored in InfusionRecipe. It is strongly advised to NOT modify this stack under any circumstance. if you do need to modify it, make a copy first.- 返回:
- the modified output. must not be null.
-
vanilla
Use vanilla behavior, i.e. pass through original output. Useful if you do not want TC4Tweaks to do anything- 返回:
- instance
-
mergeNBT
Recursively merge all NBT tags from center input item. In event of a conflict, the patterned recipe output takes precedence. In other words, if a tag with a different value or type is already present on recipe output, then the recipe output tag will be used. If whitelist is a non-null set, only keys matching filter will be merged. Otherwise, all tags will be merged.- 参数:
whitelist- keys to whitelist or null to have no whitelist- 返回:
- instance
-
mergeNBT
Shorthand formergeNBT(null)- 返回:
- instance
-