Add CatalogKey#of that takes container
Here you go liach..
@@ -104,6 +104,17 @@ static CatalogKey of(final String namespace, final String value) {
return Sponge.getRegistry().createBuilder(Builder.class).namespace(namespace).value(value).build();
}
+ /**
+ * Creates a catalog key
+ *
+ * @param container The container
+ * @param value The value
+ * @return A new catalog key
+ */
+ static CatalogKey of(final PluginContainer container, final String value) {
+ return Sponge.getRegistry().createBuilder(Builder.class).namespace(container).value(value).build();
+ }
+
/**
* Resolves a catalog key from a string.
*
