Package org.polyfrost.oneconfig.api.event.v1.events
package org.polyfrost.oneconfig.api.event.v1.events
-
ClassDescriptionEvent that is fired when the player's location is changedCalled when the game is fully initializedCalled when the JVM is shutting down
This is called in ashutdown hookRaw key event dispatched by the Minecraft instance
To translate this into something usable by PolyUI have a look atKeybindManager.translateKey(EventManager, keyCode, character, down)This event is only fired when the mouse is moved inside a screen
The provided coordinates are SCREEN coordinates and not minecraft-specific onesCalled when a screen is opened or closed
When the screen is closedScreenOpenEvent.screenwill be nullCalled when the client successfully logs into a serverCalled when the game is shutting down
This is called even when the game crashes as long as it was initialized in the first place
Use it to do work before the screen itself is fully closed
Also use it to act before another mod does something viaJvmShutdownEventEvents relating to window focus