Queerbric / Inspecio

A Minecraft mod which adds more tooltip components to items.
https://modrinth.com/mod/inspecio
GNU Lesser General Public License v3.0
102 stars 25 forks source link

compatibility with other mods with custom inventory sizes #34

Closed rmobis closed 1 month ago

rmobis commented 3 years ago

I develop (if you can call that developing) a mod for shulker box enchantments (supershulkers), one of which increases the inventory size of said shulker boxes from 27 to 36/45/54. However, Inspecio only displays the first 27.

A similar mod (ShulkerBoxTooltip) has an interface that other mods can implement in order to provide it this kind of information and the implementation, at least from my side, was relatively easy. This is useful not only for shulker boxes but potentially for any modded item.

I'm wondering if there is any similar way to let Inspecio know how many slots a given container has. From snooping around the code on InventoryTooltipComponent.java, I'm inclined to assume there isn't, so I'm also wondering if you'd be willing to accept a PR that works toward it or something else.

rmobis commented 1 month ago

CLosing as this seems to have been implemented