listenInteract

open fun listenInteract(@NotNull consumer: @NotNull Consumer<ModelInteractEvent>)

Registers an interaction listener for newly created hitboxes.

This is a convenience wrapper over listenHitBox.


tracker.listenInteract(event -> {
    // custom interaction handling
});

Since

2.0.2

Parameters

consumer

the interaction consumer