Class GenericHorseMenu
java.lang.Object
net.slommy.gui.GenericHorseMenu
Represents a GUI menu containing an array of horses.
Use the #createInventory method in order to get the menu.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minestom.server.inventory.InventorycreateInventory(HorseResponseArray horseArrayObject, String title, boolean allowDetailedHorseView) Creates the Inventory object for a GUI menu containing an array of horses
-
Constructor Details
-
GenericHorseMenu
public GenericHorseMenu()
-
-
Method Details
-
createInventory
public static net.minestom.server.inventory.Inventory createInventory(HorseResponseArray horseArrayObject, String title, boolean allowDetailedHorseView) Creates the Inventory object for a GUI menu containing an array of horses- Parameters:
horseArrayObject- The object representing the horse arraytitle- The title of the menu, this will automatically have pagination appended to it by the helper methodallowDetailedHorseView- Whether the player should be able to see things like horse stats & traits - Also allows the player to right-click to run the /viewhorse command for the clicked horse- Returns:
- Inventory object to be opened by a player.
-