registerRenderSlot

open fun registerRenderSlot(method: Any): EventTrigger

Registers a new trigger that runs before a slot is drawn in a container This is useful for hiding "background" items in containers used as GUIs.

Passes through three arguments:

  • The Slot being drawn

  • The MC GUIScreen that is being drawn

  • The event, which can be cancelled

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard