| Modifier and Type | Class and Description |
|---|---|
static class |
Item.Builder
Aids creation of
Item instances. |
| Constructor and Description |
|---|
Item(Map<ClickType,Consumer<InventoryClickEvent>> handlers,
ItemStack itemStack) |
| Modifier and Type | Method and Description |
|---|---|
static Item.Builder |
builder(ItemStack itemStack) |
Map<ClickType,Consumer<InventoryClickEvent>> |
getHandlers()
Gets the click handlers for this Item.
|
ItemStack |
getItemStack()
Gets the ItemStack backing this Item.
|
static Consumer<InventoryClickEvent> |
transformRunnable(Runnable runnable) |
@Nonnull public static Item.Builder builder(@Nonnull ItemStack itemStack)
@Nonnull public Map<ClickType,Consumer<InventoryClickEvent>> getHandlers()
@Nonnull public ItemStack getItemStack()
@Nonnull public static Consumer<InventoryClickEvent> transformRunnable(@Nonnull Runnable runnable)
Copyright © 2020. All rights reserved.