-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInventoryBuilder.java
67 lines (56 loc) · 1.39 KB
/
InventoryBuilder.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
class InventoryBuilder {
/**
* constructor
* @param inv inventory
*/
InventoryBuilder(Inventory inv);
/**
* constructor
* @param owner inventory holder
* @param size inventory size
*/
InventoryBuilder(InventoryHolder owner, int size);
/**
* constructor
* @param owner inventory holder
* @param type inventory type
*/
InventoryBuilder(InventoryHolder owner, InventoryType type);
/**
* constructor
* @param owner inventory holder
* @param size inventory size
* @param title inventory title
*/
InventoryBuilder(InventoryHolder owner, int size, String title);
/**
* constructor
* @param owner inventory holder
* @param type inventory type
* @param title inventory title
*/
InventoryBuilder(InventoryHolder owner, InventoryType type, String title);
/**
* @param slot slot id
* @param itemstack itemstack
*/
InventoryBuilder setItem(int slot, ItemStack itemstack);
/**
* @param itemstack itemstack
*/
InventoryBuilder addItem(ItemStack itemstack);
/**
* @param items map of Integers and ItemStacks
*/
InventoryBuilder setItems(Map<Integer, ItemStack> items);
String tobase64();
/**
* @param from String from
* @return map of Integers and ItemStacks
*/
Map<Integer, ItemStack> frombase64(String from);
/**
* @return Inventory
*/
Inventory create();
}