Inventory Tweaks [1.12 only]

Inventory Tweaks [1.12 only]

127M Downloads

Callback for IsLargeChest

Aroma1997 opened this issue ยท 3 comments

commented

I have a @ChestContainer with a variable size, so I use the @RowSizeCallback
Is there any way of having also a Callback of if the Buttons are located horizontally or vertically?(isLargeChest=?)

commented

Not currently, although I may add one next MC version.

For now just make them always vertical if you only need it some times -- the other mods with variable-sized chests handle it that way currently.

commented

ok thank you for your time.
Oh is there also a way to manually set the position of the buttons?

commented

I forgot about this initially, but there's a callback for the large chest behavior (it probably will not work if the GUI in question is currently open), as well as an API function to initiate a sort, allowing for custom buttons to be added.