Class GUIItem

java.lang.Object
me.block2block.hubparkour.api.gui.GUIItem

public class GUIItem extends Object
  • Constructor Details

    • GUIItem

      public GUIItem(Material material, String name)
    • GUIItem

      public GUIItem(Material material, String name, int amount)
    • GUIItem

      public GUIItem(Material material, String name, int amount, List<String> lore)
    • GUIItem

      public GUIItem(Material material, String name, int amount, List<String> lore, short data)
    • GUIItem

      public GUIItem(Material material, String name, int amount, List<String> lore, short data, boolean glowing)
    • GUIItem

      public GUIItem(Material material, String name, int amount, List<String> lore, short data, boolean glowing, int customModelData)
      Constructs a new GUI item with the specified properties.
      Parameters:
      material - the material of the item
      name - the display name of the item, may be null
      amount - the quantity of the item
      lore - the lore (description) for the item, may be null
      data - the data value of the item
      glowing - whether the item has a glowing effect
      customModelData - the data of the custom model to apply to the item (1.14+ only)
  • Method Details

    • getItemStack

      public ItemStack getItemStack()
      Retrieves the underlying ItemStack associated with this GUIItem.
      Returns:
      the ItemStack object representing the item.