Class GenericHorseMenu

java.lang.Object
net.slommy.gui.GenericHorseMenu

public class GenericHorseMenu extends Object
Represents a GUI menu containing an array of horses. Use the #createInventory method in order to get the menu.
  • 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 array
      title - The title of the menu, this will automatically have pagination appended to it by the helper method
      allowDetailedHorseView - 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.