listenInteractAt

open fun listenInteractAt(@NotNull consumer: @NotNull Consumer<ModelInteractAtEvent>)

Registers an interaction-at listener for newly created hitboxes.

This is a convenience wrapper over listenHitBox.


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

Since

2.0.2

Parameters

consumer

the interaction-at consumer