-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
Does my IItemHandler extension interface need to be registered with RegisterCapabilityEvent?
-
I'll guess you mean the size of the ExtraStorageInventory, in your case the size is set in AttachCapabilities where you create ExtraStorageInventory, and in ClickBlock where you send the size to the client. If you change these values and handle the new Slot size in your ExtraStorageMenu you can expands the ExtraStorage. Note if you change the value you need to create a new World. Finally i found your issue, as D7 already told you can not use ITEM_HANDLER_CAPABILITY but this include IItemHandler. Due you use IItemHandler for your Capability it always return the already attached IItemHandler (the player inventory). The steps to solve this problem are easy: Create a new interface which extends IItemHandler Implement this interface in your ExtraStorageInventory Use this interface for your Capability and the LazyOptional
-
Topics
Recommended Posts