T
- The type of the Objects describedpublic interface IItemRegistry<T>
Modifier and Type | Method and Description |
---|---|
IItemDescriptor<T> |
add(IItemDescriptor<T> descriptor)
Adds the given
IItemDescriptor to the registry. |
void |
clear()
Clears the registry.
|
IItemDescriptor<T> |
getItemDescriptor(java.lang.String id)
Returns the
IItemDescriptor with the given identifier. |
java.util.List<IItemDescriptor<T>> |
getItemDescriptors()
Returns all the
IItemDescriptor of the registry. |
IItemDescriptor<T> |
remove(java.lang.String id)
Removes the
IItemDescriptor with the given identifier. |
java.util.List<IItemDescriptor<T>> getItemDescriptors()
IItemDescriptor
of the registry.IItemDescriptor
of the registryIItemDescriptor<T> getItemDescriptor(java.lang.String id)
IItemDescriptor
with the given identifier.id
- The identifierIItemDescriptor
with the given identifier or null if
none could be foundIItemDescriptor<T> add(IItemDescriptor<T> descriptor)
IItemDescriptor
to the registry.descriptor
- The descriptiorIItemDescriptor
with the same identifier, or
null if no registered IItemDescriptor
had the same
identifierIItemDescriptor<T> remove(java.lang.String id)
IItemDescriptor
with the given identifier.id
- The identifierIItemDescriptor
removed or null if no registered
IItemDescriptor
had an identifier matching the given onevoid clear()