Commits

Y2K_ authored and md_5 committed ea0b2d1cf5f
#1087: Improve InventoryViewBuilder chaining
No tags

src/main/java/org/bukkit/inventory/view/builder/LocationInventoryViewBuilder.java

Modified
10 10 *
11 11 * @param <V> the type of InventoryView created from this builder
12 12 */
13 13 @ApiStatus.Experimental
14 14 public interface LocationInventoryViewBuilder<V extends InventoryView> extends InventoryViewBuilder<V> {
15 15
16 16 @NotNull
17 17 @Override
18 18 LocationInventoryViewBuilder<V> copy();
19 19
20 + @NotNull
21 + @Override
22 + LocationInventoryViewBuilder<V> title(@NotNull final String title);
23 +
20 24 /**
21 25 * Determines whether or not the server should check if the player can reach
22 26 * the location.
23 27 * <p>
24 28 * Not providing a location but setting checkReachable to true will
25 29 * automatically close the view when opened.
26 30 * <p>
27 31 * If checkReachable is set to false and a location is set on the builder if
28 32 * the target block exists and this builder is the correct menu for that
29 33 * block, e.g. MenuType.GENERIC_9X3 builder and target block set to chest,

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut