HitboxManager

object HitboxManager : Listener, PacketListener

Functions

Link copied to clipboard
fun rayTraceHitboxes(player: Player, isLeftClick: Boolean): Pair<VirtualHitbox, Vector3f>?

Finds the VirtualHitbox the player is looking at and returns it along with the hit location relative to the Hitbox.baseCenter. Filters out hitboxes that do not qualify based on VirtualHitbox.qualifier or don't have a handler for click type. Does not check for protection.

Link copied to clipboard
fun Listener.registerEvents()

Shortcut for PluginManager.registerEvents, registered under the Nova plugin.

Link copied to clipboard
fun Listener.unregisterEvents()

Unregisters this Listener from all events.