The feature is activated by first combining the Pouch with a nether star (Can be changed in the config) which then allows you to shift-right click with the Pouch to enable/disable auto collect.
The auto collect works with multiple Pouches in a players inventory. It fills up partial stacks first, before trying to insert into empty slots. The order of insertion is based on the position of the Pouch within the players inventory.
CHANGES
build.properties
Changed version
ConfigurationHandler.java
Mirrored the 'personalItem' config option, to create a new option 'enableAutoCollectItem' which sets the item used for enabling the auto collect feature.
ItemEnderPouch.java
Altered Methods
public void addInformation()
-added new tooltip, to show if auto collect is enabled
public ActionResult onItemRightClick()
-added functionality to disable/enable auto collect while sneak right clicking
New Methods
private boolean canAutoPickup()
private boolean isAutoPickupEnabled()
private String isAutoPickupEnabledToString()
private static void flipBoolean()
private NonNullList findPouchesInInventory()
private static boolean canMerge()
@SubscribeEvent : public void onEntityItemPickupEvent()
@OverRide @SideOnly(Side.CLIENT) : public boolean hasEffect()
Proxy.java
Registered the event listener for ItemEnderPouch
RecipeWithNBT.java
Created a method for preserving frequency NBT data and adding a tag to let the bag enable auto collect
RecipeRegistrationHandler.java
Registered the new recipe
TODO
No method for outright disabling auto collect in the config. (You could just set the item to a barrier block or something though)
The recipe does not show in JEI.
Currently, you have to set the frequency before adding the item to enable auto collect on the Pouch. As changing the frequency does not preserve NBT data.
Overview
The feature is activated by first combining the Pouch with a nether star (Can be changed in the config) which then allows you to shift-right click with the Pouch to enable/disable auto collect.
The auto collect works with multiple Pouches in a players inventory. It fills up partial stacks first, before trying to insert into empty slots. The order of insertion is based on the position of the Pouch within the players inventory.
CHANGES
build.properties
ConfigurationHandler.java
ItemEnderPouch.java
Altered Methods
New Methods
Proxy.java
RecipeWithNBT.java
RecipeRegistrationHandler.java
TODO