CyclopsMC / IntegratedTunnels

Transfer other energy, items and fluids over Integrated Dynamics networks
MIT License
20 stars 13 forks source link

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

Open met4000 opened 2 years ago

met4000 commented 2 years ago

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.