public final class SellChestTaskEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Constructor and Description |
---|
SellChestTaskEvent(Chest chest,
org.bukkit.inventory.ItemStack item,
double multiplier)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
Chest |
getChest()
Get the chest that sells the item.
|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
org.bukkit.inventory.ItemStack |
getItem()
Get the item that is sold.
|
double |
getMultiplier()
Get the applied price multiplier.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setMultiplier(double multiplier)
Set a price multiplier.
|
public SellChestTaskEvent(Chest chest, org.bukkit.inventory.ItemStack item, double multiplier)
chest
- The chest that sells the item.item
- The item to be sold.multiplier
- The applied price multiplier.public Chest getChest()
public org.bukkit.inventory.ItemStack getItem()
public double getMultiplier()
public void setMultiplier(double multiplier)
multiplier
- The new price multiplier.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable
public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public static org.bukkit.event.HandlerList getHandlerList()