public final class SellWandUseEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Constructor and Description |
---|
SellWandUseEvent(org.bukkit.entity.Player player,
org.bukkit.block.BlockState container,
double price,
double multiplier,
java.lang.String sellMessage)
The constructor of the event.
|
SellWandUseEvent(org.bukkit.entity.Player player,
org.bukkit.block.Chest chest,
double price,
double multiplier,
java.lang.String sellMessage)
Deprecated.
See SellWandUseEvent(Player, BlockState, Double, Double, String)
|
SellWandUseEvent(org.bukkit.entity.Player player,
org.bukkit.block.Chest chest,
double price,
java.lang.String sellMessage)
Deprecated.
See SellWandUseEvent(Player, Chest, Double, Double, String)
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.block.Chest |
getChest()
Deprecated.
See getContainer()
|
org.bukkit.block.BlockState |
getContainer()
Get the container its contents were sold.
|
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
java.lang.String |
getMessage()
Get the message that will be sent to the player.
|
double |
getMultiplier()
Get the multiplier for the price.
|
org.bukkit.entity.Player |
getPlayer()
Get the player who used the wand.
|
double |
getPrice()
Get the total price for all the items.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setMessage(java.lang.String sellMessage)
Set a new message to be sent to the player.
|
void |
setMultiplier(double multiplier)
Set the multiplier for the price.
|
void |
setPrice(double price)
Set the total price for all the items.
|
@Deprecated public SellWandUseEvent(org.bukkit.entity.Player player, org.bukkit.block.Chest chest, double price, java.lang.String sellMessage)
player
- The player who used the wand.chest
- The chest its contents were sold.price
- The total price for all the items.sellMessage
- The message that will be sent to the player.@Deprecated public SellWandUseEvent(org.bukkit.entity.Player player, org.bukkit.block.Chest chest, double price, double multiplier, java.lang.String sellMessage)
player
- The player who used the wand.chest
- The chest its contents were sold.price
- The total price for all the items.multiplier
- The multiplier for the price.sellMessage
- The message that will be sent to the player.public SellWandUseEvent(org.bukkit.entity.Player player, org.bukkit.block.BlockState container, double price, double multiplier, java.lang.String sellMessage)
player
- The player who used the wand.container
- The container with the contents were sold.price
- The total price for all the items.multiplier
- The multiplier for the price.sellMessage
- The message that will be sent to the player.public org.bukkit.entity.Player getPlayer()
@Deprecated public org.bukkit.block.Chest getChest()
public org.bukkit.block.BlockState getContainer()
public double getPrice()
public void setPrice(double price)
price
- The new total price.public double getMultiplier()
public void setMultiplier(double multiplier)
multiplier
- The new multiplier.public java.lang.String getMessage()
public void setMessage(java.lang.String sellMessage)
sellMessage
- The new message.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()