Index

A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

AIR - Enum constant in enum class org.polyfrost.oneconfig.api.event.v1.events.PlayerInteractEvent.Type
 
AnnotationEventMapper - Class in org.polyfrost.oneconfig.api.event.v1.invoke.impl
 
AnnotationEventMapper() - Constructor for class org.polyfrost.oneconfig.api.event.v1.invoke.impl.AnnotationEventMapper
 

B

BLOCK - Enum constant in enum class org.polyfrost.oneconfig.api.event.v1.events.PlayerInteractEvent.Type
 
button - Variable in class org.polyfrost.oneconfig.api.event.v1.events.MouseInputEvent
 

C

Cancellable() - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.Event.Cancellable
 
cancelled - Variable in class org.polyfrost.oneconfig.api.event.v1.events.Event.Cancellable
 
character - Variable in class org.polyfrost.oneconfig.api.event.v1.events.KeyInputEvent
The character that created this event
A value of 0 means this was a coded event and not a character event (see KeyInputEvent.key)
ChatEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
 
ChatEvent() - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.ChatEvent
 
ChatEvent.Receive - Class in org.polyfrost.oneconfig.api.event.v1.events
 
ChatEvent.Send - Class in org.polyfrost.oneconfig.api.event.v1.events
 
CLOSED - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.HudEvent.Debug
 
CLOSED - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.HudEvent.Tab
 
collect(Object) - Method in interface org.polyfrost.oneconfig.api.event.v1.invoke.EventCollector
Take an object and collect any valid event handlers that may exist inside the object
collect(Object) - Method in class org.polyfrost.oneconfig.api.event.v1.invoke.impl.AnnotationEventMapper
 
compareTo(EventHandler<E>) - Method in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
 
component1() - Method in class org.polyfrost.oneconfig.api.event.v1.events.ChatEvent.Receive
 
component1() - Method in class org.polyfrost.oneconfig.api.event.v1.events.ChatEvent.Send
 
component1() - Method in class org.polyfrost.oneconfig.api.event.v1.events.HudEvent
 
component1() - Method in class org.polyfrost.oneconfig.api.event.v1.events.KeyInputEvent
 
component1() - Method in class org.polyfrost.oneconfig.api.event.v1.events.MouseInputEvent
 
component1() - Method in class org.polyfrost.oneconfig.api.event.v1.events.MouseInputEvent.Moved
 
component1() - Method in class org.polyfrost.oneconfig.api.event.v1.events.PacketEvent
 
component1() - Method in class org.polyfrost.oneconfig.api.event.v1.events.ResizeEvent
 
component1() - Method in class org.polyfrost.oneconfig.api.event.v1.events.ScreenOpenEvent
 
component1() - Method in class org.polyfrost.oneconfig.api.event.v1.events.WorldEvent
 
component2() - Method in class org.polyfrost.oneconfig.api.event.v1.events.KeyInputEvent
 
component2() - Method in class org.polyfrost.oneconfig.api.event.v1.events.MouseInputEvent
 
component2() - Method in class org.polyfrost.oneconfig.api.event.v1.events.MouseInputEvent.Moved
 
component2() - Method in class org.polyfrost.oneconfig.api.event.v1.events.ResizeEvent
 
component3() - Method in class org.polyfrost.oneconfig.api.event.v1.events.KeyInputEvent
 

D

describeProblem(Class<?>) - Static method in class org.polyfrost.oneconfig.api.event.v1.internal.EventClassValidator
 

E

ENTITY - Enum constant in enum class org.polyfrost.oneconfig.api.event.v1.events.PlayerInteractEvent.Type
 
equals(Object) - Method in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
 
equals(EventHandler<?>) - Method in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
 
ERROR_THRESHOLD - Static variable in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
 
Event - Interface in org.polyfrost.oneconfig.api.event.v1.events
 
Event.Cancellable - Class in org.polyfrost.oneconfig.api.event.v1.events
 
EventClassValidator - Class in org.polyfrost.oneconfig.api.event.v1.internal
Validates that a class handlers are registered for is a concrete event type that can actually be posted.
EventCollector - Interface in org.polyfrost.oneconfig.api.event.v1.invoke
 
EventDelay - Class in org.polyfrost.oneconfig.api.event.v1
 
EventException - Exception Class in org.polyfrost.oneconfig.api.event.v1
Exception thrown in an event if the game should crash
EventException() - Constructor for exception class org.polyfrost.oneconfig.api.event.v1.EventException
 
EventException(String) - Constructor for exception class org.polyfrost.oneconfig.api.event.v1.EventException
 
EventException(String, Throwable) - Constructor for exception class org.polyfrost.oneconfig.api.event.v1.EventException
 
EventException(Throwable) - Constructor for exception class org.polyfrost.oneconfig.api.event.v1.EventException
 
EventHandler<E> - Class in org.polyfrost.oneconfig.api.event.v1.invoke
Class which represents an event handler
EventHandler() - Constructor for class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
 
EventManager - Class in org.polyfrost.oneconfig.api.event.v1
Manages all events from OneConfig

F

FramebufferRenderEvent - Interface in org.polyfrost.oneconfig.api.event.v1.events
 
FramebufferRenderEvent.End - Class in org.polyfrost.oneconfig.api.event.v1.events
 
FramebufferRenderEvent.Start - Class in org.polyfrost.oneconfig.api.event.v1.events
 

G

getAction() - Method in class org.polyfrost.oneconfig.api.event.v1.events.PlayerInteractEvent
 
getAverageFps() - Method in class org.polyfrost.oneconfig.api.event.v1.events.MainMenuFpsEvent
 
getCategory() - Method in class org.polyfrost.oneconfig.api.event.v1.events.SoundPlayedEvent
 
getDurationMillis() - Method in class org.polyfrost.oneconfig.api.event.v1.events.MainMenuFpsEvent
 
getEntity() - Method in class org.polyfrost.oneconfig.api.event.v1.events.RenderLivingEvent
 
getEventClass() - Method in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
 
getFullyUnformattedMessage() - Method in class org.polyfrost.oneconfig.api.event.v1.events.ChatEvent.Receive
 
getLocation() - Method in class org.polyfrost.oneconfig.api.event.v1.events.HypixelLocationEvent
Get the location of the player when the event was fired
getMessage() - Method in class org.polyfrost.oneconfig.api.event.v1.events.ChatEvent.Receive
 
getName() - Method in class org.polyfrost.oneconfig.api.event.v1.events.SoundPlayedEvent
 
getPacket() - Method in class org.polyfrost.oneconfig.api.event.v1.events.PacketEvent
This is a Duck method because Minecraft versions differ
It returns the expected type for that minecraft version legacy forge gives a IPacket modern forge gives a Packet fabric gives a Packet
getPartialTicks() - Method in class org.polyfrost.oneconfig.api.event.v1.events.RenderLivingEvent
 
getPlayer() - Method in class org.polyfrost.oneconfig.api.event.v1.events.PlayerInteractEvent
 
getPriority() - Method in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
Set the priority of this event handler
Higher priority handlers are called first
The default priority is 0
Handlers with the same priority run in order of registration
getRegisteredHandlersDebugTable() - Method in class org.polyfrost.oneconfig.api.event.v1.EventManager
 
getSampleCount() - Method in class org.polyfrost.oneconfig.api.event.v1.events.MainMenuFpsEvent
 
getScreen() - Method in class org.polyfrost.oneconfig.api.event.v1.events.ScreenOpenEvent
This is a Duck method because Minecraft versions differ
It returns the expected type for that minecraft version legacy forge gives a GuiScreen modern forge gives a Screen fabric gives a Screen
getSound() - Method in class org.polyfrost.oneconfig.api.event.v1.events.SoundPlayedEvent
 
getType() - Method in class org.polyfrost.oneconfig.api.event.v1.events.PlayerInteractEvent
 
getWorld() - Method in class org.polyfrost.oneconfig.api.event.v1.events.WorldEvent
This is a Duck method because Minecraft versions differ
It returns the expected type for that minecraft version modern forge gives a ClientLevel fabric and forge pre-1.17 give a ClientWorld
getX() - Method in class org.polyfrost.oneconfig.api.event.v1.events.MouseInputEvent.Moved
 
getX() - Method in class org.polyfrost.oneconfig.api.event.v1.events.RenderLivingEvent
 
getY() - Method in class org.polyfrost.oneconfig.api.event.v1.events.MouseInputEvent.Moved
 
getY() - Method in class org.polyfrost.oneconfig.api.event.v1.events.RenderLivingEvent
 
getZ() - Method in class org.polyfrost.oneconfig.api.event.v1.events.RenderLivingEvent
 

H

handle(E) - Method in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
 
hashCode() - Method in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
 
hasListeners(Class<? extends Event>) - Method in class org.polyfrost.oneconfig.api.event.v1.EventManager
 
HudEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
 
HudEvent.Debug - Class in org.polyfrost.oneconfig.api.event.v1.events
 
HudEvent.Tab - Class in org.polyfrost.oneconfig.api.event.v1.events
 
HypixelLocationEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
Event that is fired when the player's location is changed

I

InitializationEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
Called when the game is fully initialized
INSTANCE - Static variable in class org.polyfrost.oneconfig.api.event.v1.EventManager
The instance of the EventManager
INSTANCE - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.FramebufferRenderEvent.End
 
INSTANCE - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.FramebufferRenderEvent.Start
 
INSTANCE - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.HypixelLocationEvent
 
INSTANCE - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.InitializationEvent
 
INSTANCE - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.ResourceFinishedLoading
 
INSTANCE - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.ServerJoinEvent
 
INSTANCE - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.ShutdownEvent
 
INSTANCE - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.TickEvent.End
 
INSTANCE - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.TickEvent.Start
 
INSTANCE - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.WindowFocusEvent.Gained
 
INSTANCE - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.WindowFocusEvent.Lost
 
isLowFps(float) - Method in class org.polyfrost.oneconfig.api.event.v1.events.MainMenuFpsEvent
 
isPressed() - Method in class org.polyfrost.oneconfig.api.event.v1.events.KeyInputEvent
 

J

JvmShutdownEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
Called when the JVM is shutting down
This is called in a shutdown hook

K

key - Variable in class org.polyfrost.oneconfig.api.event.v1.events.KeyInputEvent
The keycode that created this event
A value of 0 means this was a character event and not a coded event (see KeyInputEvent.character)
KeyInputEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
Raw key event dispatched by the Minecraft instance
To translate this into something usable by PolyUI have a look at KeybindManager.translateKey(EventManager, keyCode, character, down)
KeyInputEvent(int, char, int) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.KeyInputEvent
 

L

LEFT - Enum constant in enum class org.polyfrost.oneconfig.api.event.v1.events.PlayerInteractEvent.Action
 
Load(Object) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.WorldEvent.Load
 

M

MainMenuFpsEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
 
MainMenuFpsEvent(float, int, long) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.MainMenuFpsEvent
 
message - Variable in class org.polyfrost.oneconfig.api.event.v1.events.ChatEvent.Send
 
MouseInputEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
 
MouseInputEvent(int, int) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.MouseInputEvent
 
MouseInputEvent.Moved - Class in org.polyfrost.oneconfig.api.event.v1.events
This event is only fired when the mouse is moved inside a screen
The provided coordinates are SCREEN coordinates and not minecraft-specific ones

N

newHeight - Variable in class org.polyfrost.oneconfig.api.event.v1.events.ResizeEvent
 
newWidth - Variable in class org.polyfrost.oneconfig.api.event.v1.events.ResizeEvent
 

O

of(Class<E>, int, Runnable) - Static method in class org.polyfrost.oneconfig.api.event.v1.EventDelay
of(Class<E>, int, Consumer<E>) - Static method in class org.polyfrost.oneconfig.api.event.v1.EventDelay
Schedules a Consumer to be called after a certain amount of polls from the given event
of(Class<E>, Runnable) - Static method in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
 
of(Class<E>, Consumer<? super E>) - Static method in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
Create an event handler from a consumer in a fabric-style way
ofRemoving(Class<E>, Predicate<? super E>) - Static method in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
Create an event handler from a consumer in a fabric-style way
onError() - Method in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
 
opened - Variable in class org.polyfrost.oneconfig.api.event.v1.events.HudEvent
 
OPENED - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.HudEvent.Debug
 
OPENED - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.HudEvent.Tab
 
org.polyfrost.oneconfig.api.event.v1 - package org.polyfrost.oneconfig.api.event.v1
 
org.polyfrost.oneconfig.api.event.v1.events - package org.polyfrost.oneconfig.api.event.v1.events
 
org.polyfrost.oneconfig.api.event.v1.internal - package org.polyfrost.oneconfig.api.event.v1.internal
 
org.polyfrost.oneconfig.api.event.v1.invoke - package org.polyfrost.oneconfig.api.event.v1.invoke
 
org.polyfrost.oneconfig.api.event.v1.invoke.impl - package org.polyfrost.oneconfig.api.event.v1.invoke.impl
 

P

PacketEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
 
PacketEvent(Object) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.PacketEvent
 
PacketEvent.Receive - Class in org.polyfrost.oneconfig.api.event.v1.events
 
PacketEvent.Send - Class in org.polyfrost.oneconfig.api.event.v1.events
 
PlayerInteractEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
 
PlayerInteractEvent(Object, PlayerInteractEvent.Action, PlayerInteractEvent.Type) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.PlayerInteractEvent
 
PlayerInteractEvent.Action - Enum Class in org.polyfrost.oneconfig.api.event.v1.events
 
PlayerInteractEvent.Type - Enum Class in org.polyfrost.oneconfig.api.event.v1.events
 
post(float, float) - Static method in class org.polyfrost.oneconfig.api.event.v1.events.MouseInputEvent.Moved
 
post(E) - Method in class org.polyfrost.oneconfig.api.event.v1.EventManager
Posts an event to any registered listeners
Post(Object, float, double, double, double) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.RenderLivingEvent.Post
 
Pre(Object, float, double, double, double) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.RenderLivingEvent.Pre
 
PRESSED - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.KeyInputEvent
 
PRESSED - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.MouseInputEvent
 
priority() - Element in annotation interface org.polyfrost.oneconfig.api.event.v1.invoke.impl.Subscribe
Priority for this event handler

R

Receive(Object) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.PacketEvent.Receive
 
Receive(Component) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.ChatEvent.Receive
 
register() - Method in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
Convenience method for registering this event handler
Equivalent to EventManager.INSTANCE.register(this)
register(Class<E>, Runnable) - Static method in class org.polyfrost.oneconfig.api.event.v1.EventManager
 
register(Class<E>, Consumer<E>) - Static method in class org.polyfrost.oneconfig.api.event.v1.EventManager
Convenience method for registering an event handler
Equal to EventManager.INSTANCE.register(EventHandler.of(Class, Consumer))
register(Object) - Method in class org.polyfrost.oneconfig.api.event.v1.EventManager
Registers an object to the event manager
register(Object, boolean) - Method in class org.polyfrost.oneconfig.api.event.v1.EventManager
Register an object to the event manager
register(KClass<E>, Consumer<E>) - Static method in class org.polyfrost.oneconfig.api.event.v1.EventManager
Convenience method for registering an event handler
Equal to EventManager.INSTANCE.register(EventHandler.of(Class, Consumer))
register(EventHandler<?>) - Method in class org.polyfrost.oneconfig.api.event.v1.EventManager
Register an event handler
register(EventHandler<? extends Event>...) - Method in class org.polyfrost.oneconfig.api.event.v1.EventManager
 
registerCollector(EventCollector) - Method in class org.polyfrost.oneconfig.api.event.v1.EventManager
 
RELEASED - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.KeyInputEvent
 
RELEASED - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.MouseInputEvent
 
RenderLivingEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
 
RenderLivingEvent(Object, float, double, double, double) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.RenderLivingEvent
 
RenderLivingEvent.Post - Class in org.polyfrost.oneconfig.api.event.v1.events
 
RenderLivingEvent.Pre - Class in org.polyfrost.oneconfig.api.event.v1.events
 
REPEAT - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.KeyInputEvent
 
ResizeEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
 
ResizeEvent(int, int) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.ResizeEvent
 
ResourceFinishedLoading - Class in org.polyfrost.oneconfig.api.event.v1.events
 
RIGHT - Enum constant in enum class org.polyfrost.oneconfig.api.event.v1.events.PlayerInteractEvent.Action
 

S

ScreenOpenEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
Called when a screen is opened or closed
When the screen is closed ScreenOpenEvent.screen will be null
ScreenOpenEvent(Object) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.ScreenOpenEvent
 
Send(Object) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.PacketEvent.Send
 
Send(String) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.ChatEvent.Send
 
ServerJoinEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
Called when the client successfully logs into a server
setMessage(Component) - Method in class org.polyfrost.oneconfig.api.event.v1.events.ChatEvent.Receive
 
setSound(Object) - Method in class org.polyfrost.oneconfig.api.event.v1.events.SoundPlayedEvent
 
ShutdownEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
Called 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 via JvmShutdownEvent
SoundPlayedEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
 
SoundPlayedEvent(String, Object, Object) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.SoundPlayedEvent
 
state - Variable in class org.polyfrost.oneconfig.api.event.v1.events.KeyInputEvent
state - Variable in class org.polyfrost.oneconfig.api.event.v1.events.MouseInputEvent
Subscribe - Annotation Interface in org.polyfrost.oneconfig.api.event.v1.invoke.impl
Annotate a method as a subscriber to an event
The method should take one parameter which extends Event and return void

T

tick(int, Runnable) - Static method in class org.polyfrost.oneconfig.api.event.v1.EventDelay
TickEvent - Interface in org.polyfrost.oneconfig.api.event.v1.events
 
TickEvent.End - Class in org.polyfrost.oneconfig.api.event.v1.events
 
TickEvent.Start - Class in org.polyfrost.oneconfig.api.event.v1.events
 

U

Unload(Object) - Constructor for class org.polyfrost.oneconfig.api.event.v1.events.WorldEvent.Unload
 
unregister() - Method in class org.polyfrost.oneconfig.api.event.v1.invoke.EventHandler
 
unregister(Object) - Method in class org.polyfrost.oneconfig.api.event.v1.EventManager
Remove the event handlers that were provided by the given object
This method only works if the object was registered with removable true
unregister(EventHandler<?>) - Method in class org.polyfrost.oneconfig.api.event.v1.EventManager
 
unregister(EventHandler<? extends Event>...) - Method in class org.polyfrost.oneconfig.api.event.v1.EventManager
 

V

validate(Class<?>) - Static method in class org.polyfrost.oneconfig.api.event.v1.internal.EventClassValidator
 
valueOf(String) - Static method in enum class org.polyfrost.oneconfig.api.event.v1.events.PlayerInteractEvent.Action
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.polyfrost.oneconfig.api.event.v1.events.PlayerInteractEvent.Type
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.polyfrost.oneconfig.api.event.v1.events.PlayerInteractEvent.Action
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.polyfrost.oneconfig.api.event.v1.events.PlayerInteractEvent.Type
Returns an array containing the constants of this enum class, in the order they are declared.

W

WINDOW_MILLIS - Static variable in class org.polyfrost.oneconfig.api.event.v1.events.MainMenuFpsEvent
 
WindowFocusEvent - Interface in org.polyfrost.oneconfig.api.event.v1.events
Events relating to window focus
WindowFocusEvent.Gained - Class in org.polyfrost.oneconfig.api.event.v1.events
 
WindowFocusEvent.Lost - Class in org.polyfrost.oneconfig.api.event.v1.events
 
WorldEvent - Class in org.polyfrost.oneconfig.api.event.v1.events
 
WorldEvent.Load - Class in org.polyfrost.oneconfig.api.event.v1.events
 
WorldEvent.Unload - Class in org.polyfrost.oneconfig.api.event.v1.events
 
A B C D E F G H I J K L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form