Skip to content

Commit df91b30

Browse files
Add missing javadoc
1 parent 8e3bada commit df91b30

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

invui/src/main/java/xyz/xenondevs/invui/inventory/Inventory.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public int getSize() {
8181
/**
8282
* Sets the order in which slots are iterated over for the given category.
8383
*
84+
* @param category The category of iteration operations
8485
* @param iterationOrder The new iteration order. Must include all slots and no duplicates.
8586
*/
8687
public void setIterationOrder(OperationCategory category, int[] iterationOrder) {
@@ -516,6 +517,7 @@ public void callPostUpdateEvent(@Nullable UpdateReason updateReason, int slot, @
516517
* Gets the gui priority for operations of the given category.
517518
* This priority is used to determine the order in which operations are applied to gui-embedded inventories.
518519
*
520+
* @param category The category of operations to get the priority for.
519521
* @return The priority for click actions, {@link Inventory VirtualInventories} with
520522
* a higher priority get prioritized.
521523
*/

invui/src/main/java/xyz/xenondevs/invui/window/Window.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,13 @@ default S setCloseable(boolean closeable) {
283283
return setCloseable(Property.of(closeable));
284284
}
285285

286+
/**
287+
* Sets the property that determines whether the {@link Window} is closable by the viewer.
288+
* Plugins can always close inventories.
289+
*
290+
* @param closeable The property that determines whether the {@link Window} is closable
291+
* @return This {@link Builder Window Builder}
292+
*/
286293
S setCloseable(Property<Boolean> closeable);
287294

288295
/**

0 commit comments

Comments
 (0)