Class ItemPackage

  • All Implemented Interfaces:
    java.lang.Comparable<ItemPackage>

    public class ItemPackage
    extends java.lang.Object
    implements java.lang.Comparable<ItemPackage>
    • Constructor Summary

      Constructors 
      Constructor Description
      ItemPackage​(org.bukkit.inventory.ItemStack pTopItem, org.bukkit.inventory.ItemStack pLowerItem)
      Deprecated.
      ItemPackage​(org.bukkit.inventory.ItemStack pTopItem, org.bukkit.inventory.ItemStack pLowerItem, int pPriority)
      Initials the ItemPackage
    • Constructor Detail

      • ItemPackage

        @Deprecated
        public ItemPackage​(org.bukkit.inventory.ItemStack pTopItem,
                           org.bukkit.inventory.ItemStack pLowerItem)
        Deprecated.
        Initials the ItemPackage
        Parameters:
        pTopItem - This item should be placed over the lower item
        pLowerItem - This item should be placed under the top item
      • ItemPackage

        public ItemPackage​(org.bukkit.inventory.ItemStack pTopItem,
                           org.bukkit.inventory.ItemStack pLowerItem,
                           int pPriority)
        Initials the ItemPackage
        Parameters:
        pTopItem - This item should be placed over the lower item
        pLowerItem - This item should be placed under the top item
        pPriority - The priority of this setting. A higher number will be listed first
    • Method Detail

      • getTopItem

        public org.bukkit.inventory.ItemStack getTopItem()
        Returns:
        Returns the item which should be over the lower item
      • getLowerItem

        public org.bukkit.inventory.ItemStack getLowerItem()
        Returns:
        Returns the item which should be under the top item
      • compareTo

        public int compareTo​(ItemPackage o)
        Specified by:
        compareTo in interface java.lang.Comparable<ItemPackage>