Class GuiRegistry<K>

Object
GuiRegistry<K>
Type Parameters:
K - key type used to identify registered menus (e.g. enum, string, UUID)

public class GuiRegistry<K> extends Object
Registry for mapping arbitrary keys to VirtualMenu instances.

Provides:

  • Registration of typed virtual menus
  • Safe retrieval by key + expected data class
  • Invocation helpers to build and open menus (with or without context)