provideScreen

abstract fun provideScreen(namespace: String, scope: String): Screen?

Provides a Screen instance for use by something that may open it later (ModMenu for example). Return null if no relevant config screen should be opened.

Return

A screen if a relevant scope is requested, null otherwise.

Author

fzzyhmstrs

Since

0.7.0

Parameters

namespace

The string id used to register this provider; usually the mod id. Provided for verification.

scope

String scope requesting to be opened. This will generally be something like "mod_id.config_name" See the wiki for an overview of scope