public interface IItemRegistry
Modifier and Type | Method and Description |
---|---|
IItemDescriptor |
add(IItemDescriptor descriptor)
Adds the given
IItemDescriptor to the registry. |
void |
clear()
Clears the registry.
|
boolean |
remove(java.lang.String id)
Removes the
IItemDescriptor with the given identifier. |
IItemDescriptor add(IItemDescriptor descriptor)
IItemDescriptor
to the registry.descriptor
- The descriptorIItemDescriptor
with the same identifier, or null if no registered
IItemDescriptor
had the same identifierboolean remove(java.lang.String id)
IItemDescriptor
with the given identifier.id
- The identifiervoid clear()