Commits
md_5 authored 8effa51854b
69 69 | * |
70 70 | * @param location The location to attach it to. If null, the player's |
71 71 | * location is used. |
72 72 | * @param force If false, and there is no workbench block at the location, |
73 73 | * no inventory will be opened and null will be returned. |
74 74 | * @return The newly opened inventory view, or null if it could not be |
75 75 | * opened. |
76 76 | */ |
77 77 | public InventoryView openWorkbench(Location location, boolean force); |
78 78 | |
79 - | /** |
80 - | * Opens an empty enchanting inventory window with the player's inventory |
81 - | * on the bottom. |
82 - | * |
83 - | * @param location The location to attach it to. If null, the player's |
84 - | * location is used. |
85 - | * @return The newly opened inventory view, or null if it could not be |
86 - | * opened. |
87 - | * @deprecated You cannot force open an enchanting table. |
88 - | */ |
89 - | public InventoryView openEnchanting(Location location); |
90 - | |
91 79 | /** |
92 80 | * Opens an empty enchanting inventory window with the player's inventory |
93 81 | * on the bottom. |
94 82 | * |
95 83 | * @param location The location to attach it to. If null, the player's |
96 84 | * location is used. |
97 85 | * @param force If false, and there is no enchanting table at the |
98 86 | * location, no inventory will be opened and null will be returned. |
99 87 | * @return The newly opened inventory view, or null if it could not be |
100 88 | * opened. |
101 - | * @deprecated You cannot force open an enchanting table. |
102 89 | */ |
103 - | |
104 90 | public InventoryView openEnchanting(Location location, boolean force); |
105 91 | |
106 92 | /** |
107 93 | * Opens an inventory window to the specified inventory view. |
108 94 | * |
109 95 | * @param inventory The view to open |
110 96 | */ |
111 97 | public void openInventory(InventoryView inventory); |
112 98 | |
113 99 | /** |