BoneEventDispatcher
class 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
Functions
Link copied to clipboard
Extends this dispatcher with another dispatcher's handlers.
Link copied to clipboard
open fun handleCreateHitBox(@NotNull function: @NotNull BiFunction<RenderedBone, HitBoxListener.Builder, HitBoxListener.Builder>)
Registers a handler for hitbox creation.
Link copied to clipboard
Registers a handler for state creation (e.g., when a bone is initialized for a player).
Link copied to clipboard
Registers a handler for state removal (e.g., when a bone is removed for a player).