register

abstract fun register(window: Window)

Registers window as a part of this menu. Apart from the main window, every window created that belongs to a tile entity must be registered through this.

Subsequent calls to close will Window.close if it is open.