mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-02 11:21:15 +01:00
Use ordinal as the id in InventoryType
This commit is contained in:
parent
feb1d8f0e9
commit
023431e32a
@ -5,41 +5,39 @@ package net.minestom.server.inventory;
|
||||
*/
|
||||
public enum InventoryType {
|
||||
|
||||
CHEST_1_ROW(0, 9),
|
||||
CHEST_2_ROW(1, 18),
|
||||
CHEST_3_ROW(2, 27),
|
||||
CHEST_4_ROW(3, 36),
|
||||
CHEST_5_ROW(4, 45),
|
||||
CHEST_6_ROW(5, 54),
|
||||
WINDOW_3X3(6, 9),
|
||||
ANVIL(7, 3),
|
||||
BEACON(8, 1),
|
||||
BLAST_FURNACE(9, 3),
|
||||
BREWING_STAND(10, 5),
|
||||
CRAFTING(11, 10),
|
||||
ENCHANTMENT(12, 2),
|
||||
FURNACE(13, 3),
|
||||
GRINDSTONE(14, 3),
|
||||
HOPPER(15, 5),
|
||||
LECTERN(16, 0),
|
||||
LOOM(17, 4),
|
||||
MERCHANT(18, 3),
|
||||
SHULKER_BOX(19, 27),
|
||||
SMITHING(20, 3),
|
||||
SMOKER(21, 3),
|
||||
CARTOGRAPHY(22, 3),
|
||||
STONE_CUTTER(23, 2);
|
||||
CHEST_1_ROW(9),
|
||||
CHEST_2_ROW(18),
|
||||
CHEST_3_ROW(27),
|
||||
CHEST_4_ROW(36),
|
||||
CHEST_5_ROW(45),
|
||||
CHEST_6_ROW(54),
|
||||
WINDOW_3X3(9),
|
||||
ANVIL(3),
|
||||
BEACON(1),
|
||||
BLAST_FURNACE(3),
|
||||
BREWING_STAND(5),
|
||||
CRAFTING(10),
|
||||
ENCHANTMENT(2),
|
||||
FURNACE(3),
|
||||
GRINDSTONE(3),
|
||||
HOPPER(5),
|
||||
LECTERN(0),
|
||||
LOOM(4),
|
||||
MERCHANT(3),
|
||||
SHULKER_BOX(27),
|
||||
SMITHING(3),
|
||||
SMOKER(3),
|
||||
CARTOGRAPHY(3),
|
||||
STONE_CUTTER(2);
|
||||
|
||||
private final int windowType;
|
||||
private final int slot;
|
||||
|
||||
InventoryType(int windowType, int slot) {
|
||||
this.windowType = windowType;
|
||||
InventoryType(int slot) {
|
||||
this.slot = slot;
|
||||
}
|
||||
|
||||
public int getWindowType() {
|
||||
return windowType;
|
||||
return ordinal();
|
||||
}
|
||||
|
||||
public int getAdditionalSlot() {
|
||||
|
Loading…
Reference in New Issue
Block a user