Class Items
java.lang.Object
de.chojo.universalis.provider.items.Items
- All Implemented Interfaces:
NameSupplier
A class which is able to act as a
NameSupplier for items-
Field Details
-
DEFAULT_SOURCE_URI
Default source URL for the item name dump.
-
-
Method Details
-
create
Create a new items instance which will load the items from thedefault source.- Returns:
- item instance
- Throws:
IOException- if the response could not be readInterruptedException- if the current thread gets interrupted
-
create
Create a new items instance which will load the items from the given URL.- Parameters:
source- source URI- Returns:
- item instance
- Throws:
IOException- if the response could not be read or is not 2xxInterruptedException- if the current thread gets interrupted
-
ids
- Specified by:
idsin interfaceNameSupplier
-
en
- Specified by:
enin interfaceNameSupplier
-
de
- Specified by:
dein interfaceNameSupplier
-
fr
- Specified by:
frin interfaceNameSupplier
-
jp
- Specified by:
jpin interfaceNameSupplier
-