Interface ResourceKey.Factory

  • Enclosing interface:
    ResourceKey

    public static interface ResourceKey.Factory
    A factory to generate ResourceKeys.
    • 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, using ResourceKey.MINECRAFT_NAMESPACE if no namespace is found within formatted.
        Parameters:
        formatted - The formatted string to parse
        Returns:
        A new resource key