public class PlayerUIComponent extends BaseInventory
holder, maxStackSize, name, slots, title, type, viewers| Modifier and Type | Method and Description |
|---|---|
void |
close(Player who) |
Map<Integer,Item> |
getContents() |
Item |
getItem(int index) |
int |
getMaxStackSize() |
int |
getSize() |
String |
getTitle() |
InventoryType |
getType() |
Set<Player> |
getViewers() |
void |
onClose(Player who) |
void |
onOpen(Player who) |
void |
onSlotChange(int index,
Item before,
boolean send) |
boolean |
open(Player who) |
void |
sendContents(Player... players) |
void |
sendSlot(int index,
Player... players) |
boolean |
setItem(int index,
Item item,
boolean send) |
void |
setMaxStackSize(int size) |
addItem, all, canAddItem, clear, clearAll, contains, decreaseCount, first, firstEmpty, firstFit, firstNonEmpty, getFreeSpace, getHolder, getName, increaseCount, isEmpty, isFull, remove, removeItem, sendContents, sendContents, sendSlot, sendSlot, setContents, setSizepublic int getSize()
getSize in interface InventorygetSize in class BaseInventorypublic int getMaxStackSize()
getMaxStackSize in interface InventorygetMaxStackSize in class BaseInventorypublic void setMaxStackSize(int size)
setMaxStackSize in interface InventorysetMaxStackSize in class BaseInventorypublic String getTitle()
getTitle in interface InventorygetTitle in class BaseInventorypublic Item getItem(int index)
getItem in interface InventorygetItem in class BaseInventorypublic boolean setItem(int index,
Item item,
boolean send)
setItem in interface InventorysetItem in class BaseInventorypublic Map<Integer,Item> getContents()
getContents in interface InventorygetContents in class BaseInventorypublic void sendContents(Player... players)
sendContents in interface InventorysendContents in class BaseInventorypublic void sendSlot(int index,
Player... players)
sendSlot in interface InventorysendSlot in class BaseInventorypublic Set<Player> getViewers()
getViewers in interface InventorygetViewers in class BaseInventorypublic InventoryType getType()
getType in interface InventorygetType in class BaseInventorypublic void onOpen(Player who)
onOpen in interface InventoryonOpen in class BaseInventorypublic boolean open(Player who)
open in interface Inventoryopen in class BaseInventorypublic void close(Player who)
close in interface Inventoryclose in class BaseInventorypublic void onClose(Player who)
onClose in interface InventoryonClose in class BaseInventorypublic void onSlotChange(int index,
Item before,
boolean send)
onSlotChange in interface InventoryonSlotChange in class BaseInventoryCopyright © 2020. All rights reserved.