Skip to main content

SlotEvents

SlotEvents posts callbacks when a container is opened, allowing modification of its slots.

Events

MethodWhen
modification { event -> ... }A container is opened. The event object is the AbstractContainerMenu.

Example

SlotEvents.modification { event ->
println "Container opened: ${event.menu}"
}