#custom joinserver screen
11 messages · Page 1 of 1 (latest)
You'll probably mixin to wherever players join the server, I know that much. I don't know how screen handling works outside a world though.
i need to do it before connection happens
Yes, mixin to before the server connection is sent. You can't just do the button since there's multiple buttons and keyboard inputs that work.
i dont know anything about mixins. any way through events or something else
Mixin is a trait/mixin and bytecode weaving framework for Java using ASM written by Mumfrey, primarily used in Fabric mods for modifying existing game code.
Mixin Wiki: https://github.com/SpongePowered/Mixin/wiki
Javadoc: http://jenkins.liteloader.com/view/Other/job/Mixin/javadoc/index.html
Fabric Wiki tutorial: https://fabricmc.net/wiki/tutorial:mixin_introduction
Cheatsheet: https://github.com/2xsaiko/mixin-cheatsheet/blob/master/README.md
See also:
!!mcdev - An IntelliJ plugin which adds useful helpers and inspections for using mixin
!!spongecord - The Sponge Discord server, with official support for Mixin in the #mixin channel
i am new so dont roast me if i speak some gibberish
cant i just stop the ClientConnectionEvent.Join event from continuing then do my screen stuff . then calling a joinserver method if it exists
Possibly? If that event is cancelable. I don't know if it is and can't check right now. If it is, that's probably the best thing to do, yeah.
ho to check event a cancellable ?