Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly handle 'result' type inventories #10732

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Machine-Maker
Copy link
Member

@Machine-Maker Machine-Maker commented May 16, 2024

Partially replaces #7265. That PR still has some stuff that this PR won't address.


While this might seem invasive, the pattern is very straightforward and easy to implement across all "result" type inventories. The worst part about it is the "mirroring" of the NonNullList that is initially created to hold the stacks. We have to use the exact same list for every Menu created so that the container is shared across multiple menus. We don't want to replace the Container instances on each Menu, because each Container instance created there has special logic specific to that menu, so instead we pass in the list of itemstacks from the created inventory.

Tasks

Edit tasklist title
Beta Give feedback Tasklist Tasks, more options

Delete tasklist

Delete tasklist block?
Are you sure? All relationships in this tasklist will be removed.
  1. Smithing
    Options
  2. Cartography
    Options
  3. Stonecutter
    Options
  4. Anvil
    Options
  5. Loom
    Options
  6. Grindstone
    Options
  7. Crafter
    Options
Loading

Download the paperclip jar for this pull request: paper-10732.zip

@Machine-Maker Machine-Maker added the build-pr-jar Enables a workflow to build Paperclip jars on the pull request. label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-pr-jar Enables a workflow to build Paperclip jars on the pull request.
Projects
Status: Awaiting review
Development

Successfully merging this pull request may close these issues.

None yet

1 participant