Mod

Recipe Book Access API

Quick rating

Recipe Book Access API

No reviews yet

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

No Theme
No Genre
QoL & Tweaks
Storage & Organization
API/Library
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Required

About

Project Details

Type
Mod
License
MIT License
Latest Version
v1.1.1 [Fabric 1.21.2 -> 1.21.11]
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

About

Description

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 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.

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

FAQs

  • Q: I think I found an issue… \ A: Feel free to create an issue on Github or reach out directly by email [email protected].

  • 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!

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 [email protected].

  • 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!

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~54,000
Total Downloads
CurseForge
~7,000
Modrinth
~47,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync