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

Add "Entity Inventory" option to entity aspects on world item tunnels #254

Draft
wants to merge 9 commits into
base: master-1.16
Choose a base branch
from

Conversation

met4000
Copy link

@met4000 met4000 commented Apr 29, 2022

Adds an "Entity Inventory" option to aspects on world item tunnels that interact with entity inventories, to specify if the default "sided" method should be used to select the inventory type, or if a specific inventory type should be used. Currently implemented options are "sided" (current behaviour), "armor", and "inventory" (could be renamed to "main inventory" or "main"). Possible additional options include "ender"/"ender inventory", to allow the world item tunnels to access the ender chests of players.

From a technical standpoint; adds a registry that is used to determine the IItemTarget used by the world item tunnel based on various properties. The current proxies in the registry work solely based on the World.PROPERTY_ENTITYINVENTORY IAspectProperty. The reason for using a registry over other more direct methods is for InTu-Compat to be able to add extra proxies to the registry; see issue #2 on InTu-Compat.

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.

1 participant