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