Skip to content

Clean up NEI handlers#131

Open
koolkrafter5 wants to merge 13 commits intomasterfrom
nei
Open

Clean up NEI handlers#131
koolkrafter5 wants to merge 13 commits intomasterfrom
nei

Conversation

@koolkrafter5
Copy link
Copy Markdown

See the commit messages for all improvements.

Highlights:
Show lexicon entries when finding uses or recipes for items.
Let the Floating Flower handler use the overlay button to autocomplete recipes in the inventory/crafting table grid.
Fix transfer rects and prevent machines like the Mana Pool and Runic Altar from being added to bookmarked recipes for most handlers by rendering them in the background graphics step instead of adding them to the ingredients of the recipe.
Add seeds/livingrock to apothecary/runic handlers with a custom tooltip for seeds (can be changed with a lang key):
image
image

Most changes are fixing whitespace. Check this out to ignore the whitespace changes when reviewing. We really need to enable spotless because we will never actually sync with or contribute to upstream Botania from this fork due to the radical differences between them. New features already need to be backported manually (like the improvements to the Rosa Arcana) rather than being able to just cherrypick a commit or two.

GTNH's full pack works fine with these changes. I also already tested this with the Alfheim addon and needed to walk back some of my changes to make it work, since it extends the Petal Apothecary handler and what I can only assume is Kotlin nonsense didn't like my changes even though it should have been compatible. If somebody has a better solution that axes the stupid addCenterItem param for CachedPetalApothecaryRecipe and CachedRunicAltarRecipe, I'm all ears.

@koolkrafter5 koolkrafter5 requested a review from a team March 21, 2026 05:31
@koolkrafter5 koolkrafter5 added the enhancement New feature or request label Mar 21, 2026

@Override
public void loadUsageRecipes(ItemStack ingredient) {
if(hasElvenKnowledge()) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Existing features should not be removed.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hasElvenKnowledge's body has been commented for 11 years, presumably because iterating through the player's inventory every time uses/recipes are searched for (which happens on any item, not just ones relevant to this handler!) is laggy. Information like this shouldn't even be hidden in the first place and shouldn't require you to have the book in your inventory even if it should be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants