public interface IIntegrationRecipeProvider
Modifier and Type | Method and Description |
---|---|
default java.util.Optional<IntegrationRecipe> |
getRecipe(net.minecraft.util.ResourceLocation name,
net.minecraft.nbt.NBTTagCompound recipeTag)
Returns recipe by it's name
|
IntegrationRecipe |
getRecipeFor(net.minecraft.item.ItemStack target,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> toIntegrate)
Gets an integration recipe for the given ingredients.
|
@Nullable IntegrationRecipe getRecipeFor(@Nonnull net.minecraft.item.ItemStack target, @Nonnull net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> toIntegrate)
target
- The center itemstack.toIntegrate
- A list of stacks to try to integrate to thedefault java.util.Optional<IntegrationRecipe> getRecipe(@Nonnull net.minecraft.util.ResourceLocation name, @Nullable net.minecraft.nbt.NBTTagCompound recipeTag)
recipeTag
- Additional tag attached to network-transmitted recipe definition