ContextMenuScreenFactory

The ContextMenuScreenFactory interface defines a factory for creating screens to render context menus, allowing custom or skin-specific screens (e.g., MinecraftSkin, ModernSkin).

Key Methods

  • create(ContextMenu<?>, ContextMenuProperties): Returns a Screen for the given menu and properties.

Usage

Implement for custom screens or use DefaultContextMenuScreenFactory for standard behavior. Pass to ContextMenu constructor.

Last updated

Was this helpful?