Package com.sk89q.worldedit.registry
Class NamespacedRegistry<V extends Keyed>
java.lang.Object
com.sk89q.worldedit.registry.Registry<V>
com.sk89q.worldedit.registry.NamespacedRegistry<V>
- All Implemented Interfaces:
Iterable<V>
-
Constructor Summary
ConstructorsConstructorDescriptionNamespacedRegistry(String name) NamespacedRegistry(String name, boolean checkInitialized) NamespacedRegistry(String name, String defaultNamespace) NamespacedRegistry(String name, String defaultNamespace, boolean checkInitialized) -
Method Summary
Modifier and TypeMethodDescriptiongetByInternalId(int index) Get the default namespace for this registry.Get a set of the namespaces of all registered keys.getSuggestions(String input) intsize()Methods inherited from class com.sk89q.worldedit.registry.Registry
clear, getMap, getName, iterator, keySet, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
NamespacedRegistry
-
NamespacedRegistry
-
NamespacedRegistry
-
NamespacedRegistry
-
-
Method Details
-
get
-
register
-
getByInternalId
-
size
public int size() -
getKnownNamespaces
Get a set of the namespaces of all registered keys.- Returns:
- set of namespaces
-
getDefaultNamespace
Get the default namespace for this registry.- Returns:
- the default namespace
-
getSuggestions
-