Class DepositBox
java.lang.Object
org.highlife.api.methods.depositbox.DepositBox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic booleanall()static intcapacity()static booleanclose()static booleancontains(int id) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleancontainsAll(int... ids) static booleancontainsAll(String... names) static booleancontainsAll(Collection<?> collection) static intcount(int id) static intstatic intstatic booleandeposit(int id) static booleandeposit(int id, int amount) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleandepositAll(int id) static booleandepositAll(String name) static booleandepositAll(Filter<Item> filter) static booleandepositAll(Item item) static booleanstatic booleandepositAllExcept(Integer... ids) static booleandepositAllExcept(String... names) static booleandepositAllExcept(Filter<Item> filter) static booleanstatic booleanstatic intstatic intstatic Itemget(int id) static Itemget(int[] ids) static Itemstatic Itemstatic Itemstatic Itemstatic intstatic intstatic intgetIdForSlot(int slot) static ItemgetItemInSlot(int slot) static StringgetNameForSlot(int slot) static WidgetChildgetSlotWidget(int slot) static booleanisEmpty()static booleanisFull()static booleanisOpen()static booleanisSlotEmpty(int slot) static booleanisSlotFull(int slot) static booleanonlyContains(Integer... id) static booleanonlyContains(String... names) static booleanonlyContains(Filter<Item> f) static booleanopen()static booleanstatic Itemstatic intsize()static intslot(int id) static intstatic intstatic RectangleslotBounds(int slot) static booleanslotContains(int slot, int[] ids) static booleanslotContains(int slot, Integer... ids) static booleanslotContains(int slot, String name) static booleanslotContains(int slot, String... names) static booleanslotContains(int slot, Filter<Item> filter) static booleanslotContains(int slot, Item t) static Object[]toArray()static intstatic int
-
Constructor Details
-
DepositBox
public DepositBox()
-
-
Method Details
-
widgetParentId
public static int widgetParentId() -
widgetChildId
public static int widgetChildId() -
capacity
public static int capacity() -
all
-
isOpen
public static boolean isOpen() -
open
public static boolean open() -
openClosest
public static boolean openClosest() -
close
public static boolean close() -
depositAllItems
public static boolean depositAllItems() -
depositAllEquipment
public static boolean depositAllEquipment() -
depositAllLoot
public static boolean depositAllLoot() -
depositAllExcept
-
deposit
-
slotBounds
-
getSlotWidget
-
depositAll
-
deposit
public static boolean deposit(int id, int amount) -
deposit
-
deposit
-
depositAllExcept
-
depositAllExcept
-
deposit
public static boolean deposit(int id) -
deposit
-
deposit
-
deposit
-
depositAll
public static boolean depositAll(int id) -
depositAll
-
depositAll
-
fullSlotCount
public static int fullSlotCount() -
emptySlotCount
public static int emptySlotCount() -
isSlotEmpty
public static boolean isSlotEmpty(int slot) -
isSlotFull
public static boolean isSlotFull(int slot) -
onlyContains
-
onlyContains
-
onlyContains
-
slotContains
-
slotContains
-
slotContains
-
slotContains
public static boolean slotContains(int slot, int[] ids) -
slotContains
-
slotContains
-
getFirstEmptySlot
public static int getFirstEmptySlot() -
getFirstFullSlot
public static int getFirstFullSlot() -
getIdForSlot
public static int getIdForSlot(int slot) -
getNameForSlot
-
slot
public static int slot(int id) -
slot
-
slot
-
add
-
toArray
-
add
-
all
-
getItemInSlot
-
get
-
get
-
get
-
get
-
get
-
get
-
except
-
size
public static int size() -
isEmpty
public static boolean isEmpty() -
contains
public static boolean contains(int id) -
contains
-
containsAll
-
containsAll
public static boolean containsAll(int... ids) -
containsAll
-
contains
-
contains
-
contains
-
contains
-
isFull
public static boolean isFull() -
count
-
count
public static int count(int id) -
count
-
set
-