module

Rosegold::MenuFactory

Class methods

create(client : Client, container_id : UInt8, title : Chat, type_id : UInt32) : Menu

Create the correct Menu subclass from OpenScreen packet type_id. IDs from MenuType.java declaration order (MC 1.21.8+).

Source
open(client : Client, container_id : UInt8, title : Chat, type_id : UInt32) : Menu

Open a new container menu, closing any existing one first.

Source