#Chest Sorter

1 messages · Page 1 of 1 (latest)

vague current
#

chest sorters are generally both

#

you need to sync inventories with the server

#

iirc client side only sorting is done by stimulating the moves

swift pendant
#

Ah okay that makes sense

swift pendant
#

And is there like a mixin I can use to override the chest ui? Or at least extend the chest ui

vague current
#

there are no predefined mixins. you'll have to find where things happen in vanilla Minecraft and then change the code as you need using mixins

swift pendant
#

Fair enough

swift pendant
#

Hmm yeah I am trying to find the chest screen rn.. Can't seem to find it..

#

Thinking it might be GenericContainerScreen?

#

Ah yeah, I see it now HandledScreens.java has the generic inventory sizes

swift pendant
#

Hmmm so how would I go about actually adding a UI option, I managed to inject into the render function, do I need some 3rd party library?

#

Okay got it, now gotta use the ButtonWidget properly and retrieve the chest contents

#

Still wanna be able to juse follow the original extends and implement pattern tho..