Package org.spongepowered.api
Interface ResourceKey.Factory
-
- Enclosing interface:
- ResourceKey
public static interface ResourceKey.FactoryA factory to generateResourceKeys.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceKeyof(String namespace, String value)ResourceKeyof(org.spongepowered.plugin.PluginContainer plugin, String value)ResourceKeyresolve(String formatted)Resolves a resource key from a string, usingResourceKey.MINECRAFT_NAMESPACEif no namespace is found withinformatted.
-
-
-
Method Detail
-
of
ResourceKey of(String namespace, String value)
-
of
ResourceKey of(org.spongepowered.plugin.PluginContainer plugin, String value)
-
resolve
ResourceKey resolve(String formatted)
Resolves a resource key from a string, usingResourceKey.MINECRAFT_NAMESPACEif no namespace is found withinformatted.- Parameters:
formatted- The formatted string to parse- Returns:
- A new resource key
-
-