Package redempt.redlib.enchants
Class EventItems
java.lang.Object
redempt.redlib.enchants.EventItems
Represents the items related to an event, for handling by enchantments
-
Constructor Summary
ConstructorDescriptionEventItems
(org.bukkit.event.Event event, org.bukkit.inventory.ItemStack after) EventItems
(org.bukkit.event.Event event, org.bukkit.inventory.ItemStack[] after) EventItems
(org.bukkit.event.Event event, org.bukkit.inventory.ItemStack[] before, org.bukkit.inventory.ItemStack[] after) EventItems
(org.bukkit.event.Event event, org.bukkit.inventory.ItemStack before, org.bukkit.inventory.ItemStack after) -
Method Summary
-
Constructor Details
-
EventItems
public EventItems(org.bukkit.event.Event event, org.bukkit.inventory.ItemStack[] before, org.bukkit.inventory.ItemStack[] after) - Parameters:
event
- The eventbefore
- The array of items before the event executesafter
- The array of items after the event executes
-
EventItems
public EventItems(org.bukkit.event.Event event, org.bukkit.inventory.ItemStack before, org.bukkit.inventory.ItemStack after) - Parameters:
event
- The eventbefore
- The item before the event executesafter
- The item after the event executes
-
EventItems
public EventItems(org.bukkit.event.Event event, org.bukkit.inventory.ItemStack[] after) - Parameters:
event
- The eventafter
- The array of items related to the event
-
EventItems
public EventItems(org.bukkit.event.Event event, org.bukkit.inventory.ItemStack after) - Parameters:
event
- The eventafter
- The item related to the event
-
-
Method Details
-
getBefore
public org.bukkit.inventory.ItemStack[] getBefore()- Returns:
- The array of items before the event executes
-
getAfter
public org.bukkit.inventory.ItemStack[] getAfter()- Returns:
- The array of items after the event executes
-
getEvent
public org.bukkit.event.Event getEvent()- Returns:
- The event
-