public class ItemModule extends JavaPlugin
Class ItemModule. Provides itemmodule functionality for the Hytale server.
java.lang.Object > JavaPlugin > ItemModule
Field Summary
ids
final
List
ids
Field ids.
array
final
ItemCategory[]
array
Field array.
itemCategories
final
ItemCategory[]
itemCategories
Field itemCategories.
category
final
ItemCategory
category
Field category.
children
final
ItemCategory[]
children
Field children.
id
final
String
id
Field id.
itemDropList
final
ItemDropList
itemDropList
Field itemDropList.
generatedItemDrops
final
List
generatedItemDrops
Field generatedItemDrops.
random
final
ThreadLocalRandom
random
Field random.
configuredItemDrops
final
List
configuredItemDrops
Field configuredItemDrops.
container
final
ItemDropContainer
container
Field container.
drops
final
List
drops
Field drops.
obj
final
ThreadLocalRandom
obj
Field obj.
amount
final
int
amount
Field amount.
Method Detail
setup
protected
void
setup
()
Method setup.
SpawnItemCommand
public
new
SpawnItemCommand
()
Method SpawnItemCommand.
getFlatItemCategoryList
public
List
getFlatItemCategoryList
()
Method getFlatItemCategoryList.
flattenCategories
private
void
flattenCategories
(final String parent, @Nonnull final ItemCategory[] itemCategories, @Nonnull final List categoryIds)
Method flattenCategories.
- Parameters:
final Stringparent@Nonnull final ItemCategory[]itemCategories@Nonnull final ListcategoryIds
getRandomItemDrops
public
List
getRandomItemDrops
(@Nullable final String dropListId)
Method getRandomItemDrops.
- Parameters:
@Nullable final StringdropListId
ItemStack
public
new
ItemStack
(drop.getItemId()
Method ItemStack.
- Parameters:
drop.getItemId(drop.getItemId(
exists
static
boolean
exists
(final String key)
Method exists.
- Parameters:
final Stringkey