Skip to content

Conversation

@beanbag44
Copy link
Collaborator

Reworks the container utils system to use slots as a way of accessing immediately accessible stacks, while stacks are used for caching. When an ExternalContainer's slots are empty, you can call access() to receive a task to open the inventory. For something like an enderchest, it will place one, open it, and then, if you specified to exit the inventory afterward, it will break and pick it back up.

By detaching the transfer system from being completely reliant on tasks, it allows the system to be used in areas where transfers are supposed to be instant, without the overhead of a task.

@beanbag44 beanbag44 requested a review from emyfops January 8, 2026 15:59
@beanbag44
Copy link
Collaborator Author

This acts similarly to the old way. But with this method, it uses the most efficient mode of transfer when possible, by comparing both containers you're transferring to by their swap method priority. For example, if you swap between a chests inventory and your hotbar, it will realize its faster to do hotbar swap actions over clicking twice or three times regularly to move the stacks

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants