Interface MachineMenus
public interface MachineMenus
Opens machine menus (ยง23.3). Implemented by a menu-plugin integration (zMenu);
current() is
empty without one, and machines then have no GUI.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable MachineMenuscurrent()The menus of the running server, ornull(no menu plugin).booleanopen(@NotNull org.bukkit.entity.Player player, @NotNull WorldPosition position) Opens the menu configured for the type of the machine atposition.booleanopen(@NotNull org.bukkit.entity.Player player, @NotNull WorldPosition position, @NotNull String menu) Opens the menu filemenu(e.g.static voidsetCurrent(@Nullable MachineMenus menus) Set by the menu integration when it starts and stops.
-
Method Details
-
open
boolean open(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull WorldPosition position) Opens the menu configured for the type of the machine atposition. Player's thread.- Returns:
- whether a menu was opened
-
open
boolean open(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull WorldPosition position, @NotNull @NotNull String menu) Opens the menu filemenu(e.g. a side configuration menu) for the machine atposition. -
current
The menus of the running server, ornull(no menu plugin). -
setCurrent
Set by the menu integration when it starts and stops.
-