Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
InventoryType.java
1 package org.bukkit.event.inventory;
2 
3 public enum InventoryType {
4 
5  /**
6  * A chest inventory, with 0, 9, 18, 27, 36, 45, or 54 slots of type
7  * CONTAINER.
8  */
9  CHEST(27,"Chest"),
10  /**
11  * A dispenser inventory, with 9 slots of type CONTAINER.
12  */
13  DISPENSER(9,"Dispenser"),
14  /**
15  * A dropper inventory, with 9 slots of type CONTAINER.
16  */
17  DROPPER(9, "Dropper"),
18  /**
19  * A furnace inventory, with a RESULT slot, a CRAFTING slot, and a FUEL
20  * slot.
21  */
22  FURNACE(3,"Furnace"),
23  /**
24  * A workbench inventory, with 9 CRAFTING slots and a RESULT slot.
25  */
26  WORKBENCH(10,"Crafting"),
27  /**
28  * A player's crafting inventory, with 4 CRAFTING slots and a RESULT slot.
29  * Also implies that the 4 ARMOR slots are accessible.
30  */
31  CRAFTING(5,"Crafting"),
32  /**
33  * An enchantment table inventory, with one CRAFTING slot and three
34  * enchanting buttons.
35  */
36  ENCHANTING(1,"Enchanting"),
37  /**
38  * A brewing stand inventory, with one FUEL slot and three CRAFTING slots.
39  */
40  BREWING(4,"Brewing"),
41  /**
42  * A player's inventory, with 9 QUICKBAR slots, 27 CONTAINER slots, and 4
43  * ARMOR slots. The ARMOUR slots may not be visible to the player, though.
44  */
45  PLAYER(36,"Player"),
46  /**
47  * The creative mode inventory, with only 9 QUICKBAR slots and nothing
48  * else. (The actual creative interface with the items is client-side and
49  * cannot be altered by the server.)
50  */
51  CREATIVE(9,"Creative"),
52  /**
53  * The merchant inventory, with 2 TRADE-IN slots, and 1 RESULT slot.
54  */
55  MERCHANT(3,"Villager"),
56  /**
57  * The ender chest inventory, with 27 slots.
58  */
59  ENDER_CHEST(27,"Ender Chest"),
60  /**
61  * An anvil inventory, with 2 CRAFTING slots and 1 RESULT slot
62  */
63  ANVIL(3, "Repairing"),
64  /**
65  * A beacon inventory, with 1 CRAFTING slot
66  */
67  BEACON(1, "container.beacon"),
68  /**
69  * A hopper inventory, with 5 slots of type CONTAINER.
70  */
71  HOPPER(5, "Item Hopper"),
72  ;
73 
74  private final int size;
75  private final String title;
76 
77  private InventoryType(int defaultSize, String defaultTitle) {
78  size = defaultSize;
79  title = defaultTitle;
80  }
81 
82  public int getDefaultSize() {
83  return size;
84  }
85 
86  public String getDefaultTitle() {
87  return title;
88  }
89 
90  public enum SlotType {
91  /**
92  * A result slot in a furnace or crafting inventory.
93  */
95  /**
96  * A slot in the crafting matrix, or the input slot in a furnace
97  * inventory, the potion slot in the brewing stand, or the enchanting
98  * slot.
99  */
101  /**
102  * An armour slot in the player's inventory.
103  */
105  /**
106  * A regular slot in the container or the player's inventory; anything
107  * not covered by the other enum values.
108  */
110  /**
111  * A slot in the bottom row or quickbar.
112  */
114  /**
115  * A pseudo-slot representing the area outside the inventory window.
116  */
118  /**
119  * The fuel slot in a furnace inventory, or the ingredient slot in a
120  * brewing stand inventory.
121  */
123  }
124 }