Package com.earth2me.essentials.items
Class CustomItemResolver
java.lang.Object
com.earth2me.essentials.items.CustomItemResolver
- All Implemented Interfaces:
IConf
,Function<String,
,ItemStack> IItemDb.ItemResolver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates an item stack from the given name, if the given name is recognised by this resolver.getAliasesFor
(String item) getNames()
Get all possible names that are recognised by this item resolver.void
void
removeAlias
(String alias) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.ess3.api.IItemDb.ItemResolver
serialize
-
Constructor Details
-
CustomItemResolver
-
-
Method Details
-
apply
Description copied from interface:IItemDb.ItemResolver
Creates an item stack from the given name, if the given name is recognised by this resolver. -
getNames
Description copied from interface:IItemDb.ItemResolver
Get all possible names that are recognised by this item resolver.Implementing this method is optional but recommended, since it enables custom items to be seen in tab complete.
- Specified by:
getNames
in interfaceIItemDb.ItemResolver
- Returns:
- A collection of all the possible names for items that this resolver recognises.
-
getAliasesFor
- Throws:
Exception
-
reloadConfig
public void reloadConfig()- Specified by:
reloadConfig
in interfaceIConf
-
setAlias
-
removeAlias
-