BoneEventDispatcher

Dispatches events related to bone lifecycle and interaction.

This class manages handlers for hitbox creation, state creation, and state removal. It allows for extending behavior by chaining dispatchers.

Since

1.15.2

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun extend(@NotNull dispatcher: @NotNull BoneEventDispatcher)
Extends this dispatcher with another dispatcher's handlers.
Link copied to clipboard
Registers a handler for hitbox creation.
Link copied to clipboard
open fun handleStateCreate(@NotNull function: @NotNull BiConsumer<RenderedBone, UUID>)
Registers a handler for state creation (e.g., when a bone is initialized for a player).
Link copied to clipboard
open fun handleStateRemove(@NotNull function: @NotNull BiConsumer<RenderedBone, UUID>)
Registers a handler for state removal (e.g., when a bone is removed for a player).