You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(slot < 0 || slot >= this.getRows() * 9) thrownewIllegalArgumentException("The slot can't be less than zero or greater than the inventory size.");
138
150
for(intslotIndex : itemSlots) {
139
-
if(slot == slotIndex) thrownewIllegalArgumentException("You can't add an item in a slot reserved for pageable items. Use PageableChestMenu#addPageableItem instead.");
151
+
if(slot == slotIndex) thrownewIllegalArgumentException("You can't add an item in a slot reserved for pageable items.");
if(slot < 0 || slot >= this.getRows() * 9) thrownewIllegalArgumentException("The slot can't be less than zero or greater than the inventory size.");
175
187
for(intslotIndex : itemSlots) {
176
-
if(slot == slotIndex) thrownewIllegalArgumentException("You can't add an item in a slot reserved for pageable items. Use PageableChestMenu#addPageableItem instead.");
188
+
if(slot == slotIndex) thrownewIllegalArgumentException("You can't add an item in a slot reserved for pageable items.");
@@ -201,7 +213,7 @@ public PageableChestMenu setPreviousPageItem(ItemStack item, int slot) {
201
213
@Override
202
214
publicChestMenuaddItem(MenuItemitem, intslot) {
203
215
for(intslotIndex : itemSlots) {
204
-
if(slot == slotIndex) thrownewIllegalArgumentException("You can't add an item in a slot reserved for pageable items. Use PageableChestMenu#addPageableItem instead.");
216
+
if(slot == slotIndex) thrownewIllegalArgumentException("You can't add an item in a slot reserved for pageable items.");
if(slot < 0 || slot >= this.getRows() * 9) thrownewIllegalArgumentException("The slot can't be less than zero or greater than the inventory size.");
136
148
for(intslotIndex : itemSlots) {
137
-
if(slot == slotIndex) thrownewIllegalArgumentException("You can't add an item in a slot reserved for pageable items. Use PageableChestMenu#addPageableItem instead.");
149
+
if(slot == slotIndex) thrownewIllegalArgumentException("You can't add an item in a slot reserved for pageable items.");
if(slot < 0 || slot >= this.getRows() * 9) thrownewIllegalArgumentException("The slot can't be less than zero or greater than the inventory size.");
173
185
for(intslotIndex : itemSlots) {
174
-
if(slot == slotIndex) thrownewIllegalArgumentException("You can't add an item in a slot reserved for pageable items. Use PageableChestMenu#addPageableItem instead.");
186
+
if(slot == slotIndex) thrownewIllegalArgumentException("You can't add an item in a slot reserved for pageable items.");
@@ -199,7 +211,7 @@ public PageableChestMenu setPreviousPageItem(ItemStack item, int slot) {
199
211
@Override
200
212
publicChestMenuaddItem(MenuItemitem, intslot) {
201
213
for(intslotIndex : itemSlots) {
202
-
if(slot == slotIndex) thrownewIllegalArgumentException("You can't add an item in a slot reserved for pageable items. Use PageableChestMenu#addPageableItem instead.");
214
+
if(slot == slotIndex) thrownewIllegalArgumentException("You can't add an item in a slot reserved for pageable items.");
0 commit comments