ItemsRegistry
Deprecated
Use Items API from mimic-bukkit-api instead, it identifies items by their owner and creates them for a player.
Service for getting items by their ID. Also, can be used to match ID with item.
Mimic uses resource locations to identify items, where the namespace is the ID of an items registry: [namespace]:[itemId], e.g. minecraft:acacia_boat. IDs without namespace or with the mimic: namespace are searched over all registries.
Implementation Notes
Implementations receive and return IDs without the registry namespace: lowercase paths of a-z, 0-9, ., _, - and /. Mapping them to the plugin's own IDs is up to the implementation: itemsadder:ruby_sword ->itemsadder/ruby_sword. Invalid IDs are ignored.
Inherited properties
Functions
Returns ID representing given item, or null if the ID not found in this registry.
Returns true if item with given itemId exists.