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(java.lang.String namespace, java.lang.String value)
ResourceKey
of(org.spongepowered.plugin.PluginContainer plugin, java.lang.String value)
ResourceKey
resolve(java.lang.String formatted)
Resolves a resource key from a string, usingResourceKey.MINECRAFT_NAMESPACE
if no namespace is found withinformatted
.
-
-
-
Method Detail
-
of
ResourceKey of(java.lang.String namespace, java.lang.String value)
-
of
ResourceKey of(org.spongepowered.plugin.PluginContainer plugin, java.lang.String value)
-
resolve
ResourceKey resolve(java.lang.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
-
-