Package net.mezzdev.config.gui.api
Class ConfigValueEditorType<T>
java.lang.Object
net.mezzdev.config.gui.api.ConfigValueEditorType<T>
Identifies the kind of editor a config screen should use for a config value.
Editor types are reference-identity tokens. Create one token for each UID and share that exact instance between the serializer and editor registration. Registering a different token with the same UID is rejected, preventing callers from associating incompatible generic value types with one logical editor type.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ConfigValueEditorType<T>Create a config value editor type.static <T> ConfigValueEditorType<T>create(net.minecraft.resources.ResourceLocation uid) Create a config value editor type.net.minecraft.resources.ResourceLocationgetUid()The unique id of this editor type.toString()
-
Method Details
-
create
Create a config value editor type.- Parameters:
namespace- the namespace for this editor typepath- the path for this editor type- Since:
- 0.1.0
-
create
Create a config value editor type.- Parameters:
uid- the unique id for this editor type- Since:
- 0.1.0
-
getUid
public net.minecraft.resources.ResourceLocation getUid()The unique id of this editor type.- Since:
- 0.1.0
-
toString
-