Simple example on how this method of writing addons work.
CustomAddon.java
@name("Custom Addon")@author("Example Author")@description("A custom addon")// this makes the player float while also spoofing it's ground state// also print the client's username in chatpublicvoidonPlayerMotionEvent(StitchPlayerMotionEvent event) {if (!event.isPre()) return;event.setOnGround(true);mc.thePlayer.motionY=0.0;getStitch().logChat(getStitch().getUsername());}