registerRenderSlotHighlight

open fun registerRenderSlotHighlight(method: Any): EventTrigger

Registers a new trigger that runs before the hovered slot square is drawn.

Passes through six arguments:

  • The mouseX position

  • The mouseY position

  • The MC Slot

  • The GuiContainer

  • The event, which can be cancelled

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard