Class PlotItemStack

java.lang.Object
com.plotsquared.core.plot.PlotItemStack

public class PlotItemStack extends Object
  • Constructor Details

    • PlotItemStack

      public PlotItemStack(String id, int amount, String name, String... lore)
      Parameters:
      id - String ID
      amount - Amount of items in the stack
      name - The display name of the item stack
      lore - The item stack lore
    • PlotItemStack

      public PlotItemStack(ItemType type, int amount, String name, String... lore)
      Parameters:
      type - The item type
      amount - Amount of items in the stack
      name - The display name of the item stack
      lore - The item stack lore
      Since:
      6.5.0
  • Method Details

    • getBlockState

    • getType

      public ItemType getType()
    • getAmount

      public int getAmount()
      Returns the number of items in this stack. Valid values range from 1-255.
      Returns:
      the amount of items in this stack
    • getName

      public String getName()
      Returns the given name of this stack of items. The name is displayed when hovering over the item.
      Returns:
      the given name of this stack of items
    • getLore

      public String[] getLore()