SlotEvents
SlotEvents posts callbacks when a container is opened, allowing modification of its slots.
Events
| Method | When |
|---|---|
modification { event -> ... } | A container is opened. The event object is the AbstractContainerMenu. |
Example
SlotEvents.modification { event ->
println "Container opened: ${event.menu}"
}