Package org.spongepowered.api
Interface ResourceKey.Factory
-
- Enclosing interface:
- ResourceKey
public static interface ResourceKey.Factory
A factory to generateResourceKey
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceKey
of(String namespace, String value)
ResourceKey
of(org.spongepowered.plugin.PluginContainer plugin, String value)
ResourceKey
resolve(String formatted)
Resolves a resource key from a string, usingResourceKey.MINECRAFT_NAMESPACE
if 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_NAMESPACE
if no namespace is found withinformatted
.- Parameters:
formatted
- The formatted string to parse- Returns:
- A new resource key
-
-