Перейти к содержимому
Mineforgian

Recipe Book Access API

An effortless Fabric API, enabling recipe-book crafting from customizable external inventories.

47K загрузок8 подписчиковMITfabric

Обновлён 19 июня 2026 г. · опубликован 17 марта 2025 г.

Recipe Book Access Banner

Recipe Book Access is a simple Fabric API designed to intuitively add support for external inventory access in any crafting screen.
It redirects the recipe book functionality to check and fill from a customisable list of inventories, instead of just the player's.

What does this mean?

See for yourself! Recipe Book Access Demonstration
This is an EXAMPLE of a modded crafting table uses a custom list of inventories via this API, in this specific case it uses all inventories from nearby chests.

This mod alone will not achieve what is shown above - If you are looking for a mod that implements this for the crafting table, you probably want the Nearby Crafting mod.

Quickstart Guide

For a more detailed how-to-use guide, including how to setup this API in your project's environment, please see the readme on Github for this project here.

This API provides a simple interface called RecipeBookInventoryProvider, located in com.jomlom.recipebookaccess.api.

This interface must be implemented to your screen handler class, only one method needs overriding (getInventoriesForAutofill()) for the API's full functionality.

You must implement this method to return a list of inventories which you want the recipe book to access and craft from, this won't include the player's inventory by default.

Code Example:

import com.jomlom.recipebookaccess.api.RecipeBookInventoryProvider

public class YourCraftingScreenHandler extends AbstractRecipeScreenHandler implements RecipeBookInventoryProvider {
    // your existing code...

    @Override
    public List<Inventory> getInventoriesForAutofill() {
        return yourInventoriesList;
    }
}

Assumptions made by this API:

  • Your screen handler class extends 'AbstractRecipeScreenHandler', or any of its subclasses
  • Your corresponding screen extends 'RecipeBookScreen', in order to utilize the minecraft recipe book

(I have not tested outside these assumptions)

FAQs

  • Q: I think I found an issue...
    A: Feel free to create an issue on Github or reach out directly by email contact@jontyali.com.

  • Q: Will you release support for x ?
    A: Again, feel free to reach out with reqeusts to support certain versions or other mods. I plan to explore support for NeoForge soon.

  • Q: Does my getInventoriesForAutofill() implementation need to work from the client?
    A: Nope! getInventoriesForAutofill() is only used from the server side screen handler, and the API will keep the client up to date on the results for you automatically!

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
1.1.1+1.21.11Релиз1.21.8, 1.21.9, 1.21.10, 1.21.11fabric19 июня 2026 г..jar (29 КБ)
1.1.0+1.20.1Релиз1.20.1fabric21 апреля 2025 г..jar (35 КБ)
1.1.0+1.21Релиз1.21, 1.21.1fabric21 апреля 2025 г..jar (36 КБ)
1.1.0+1.21.4Релиз1.21.2, 1.21.3, 1.21.4, 1.21.5fabric19 апреля 2025 г..jar (30 КБ)
1.0.2+1.20.1Релиз1.20.1fabric4 апреля 2025 г..jar (28 КБ)
1.0.2+1.21Релиз1.21, 1.21.1fabric29 марта 2025 г..jar (29 КБ)
1.0.2+1.21.4Релиз1.21.2, 1.21.3, 1.21.4fabric29 марта 2025 г..jar (30 КБ)
1.0.1+1.21Релиз1.21, 1.21.1fabric24 марта 2025 г..jar (28 КБ)
1.0.1+1.21.4Релиз1.21.2, 1.21.3, 1.21.4fabric23 марта 2025 г..jar (29 КБ)
1.0.0Релиз1.21.2, 1.21.3, 1.21.4fabric21 марта 2025 г..jar (28 КБ)

Ченджлог

1.1.1+1.21.11Релиз1.21.9, 1.21.10, 1.21.11 · 19 июня 2026 г.

Support for up to 1.21.11

1.1.0+1.20.1Релиз1.20.1 · 21 апреля 2025 г.

1.20.1 JEI Support Functionality

1.1.0+1.21Релиз1.21, 1.21.1 · 21 апреля 2025 г.

JEI Support Functionality

1.1.0+1.21.4Релиз1.21.3, 1.21.4, 1.21.5 · 19 апреля 2025 г.

+ Support for 1.21.5

1.0.2+1.20.1Релиз1.20.1 · 4 апреля 2025 г.

1.20.1 Support Released!

1.0.2+1.21Релиз1.21, 1.21.1 · 29 марта 2025 г.

Integers inputSlotsStartIndex and inputSlotsEndIndex added to RecipeBookInventoryProvider interface (defaulted to 1 and 10)

Needed for pre 1.21.2 implementations to use new v1.0.2 features correctly

1.0.2+1.21.4Релиз1.21.2, 1.21.3, 1.21.4 · 29 марта 2025 г.

Items in crafting grid will also now do their returning to original inventories when screen is closed [TOGGLEABLE]

New default (false) boolean persistentInventory in RecipeBookInventoryProvider interface

1.0.1+1.21Релиз1.21, 1.21.1 · 24 марта 2025 г.

Support for 1.21 and 1.21.1 has been Released!

Полная история изменений — на Modrinth.

Комментарии

Загружаем…