Package de.simonsator.datastructures
Class ItemPackage
- java.lang.Object
-
- de.simonsator.datastructures.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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ItemPackage o)
org.bukkit.inventory.ItemStack
getLowerItem()
org.bukkit.inventory.ItemStack
getTopItem()
-
-
-
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 itempLowerItem
- 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 itempLowerItem
- This item should be placed under the top itempPriority
- 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 interfacejava.lang.Comparable<ItemPackage>
-
-