public final class HarvesterHoeSellEvent
extends org.bukkit.event.player.PlayerEvent
implements org.bukkit.event.Cancellable
Constructor and Description |
---|
HarvesterHoeSellEvent(org.bukkit.entity.Player player,
double price,
double multiplier,
java.lang.String sellMessage)
The constructor of the event.
|
HarvesterHoeSellEvent(org.bukkit.entity.Player player,
double price,
java.lang.String sellMessage)
Deprecated.
See HarvesterHoeSellEvent(Player, Double, Double, String)
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 HarvesterHoeSellEvent(org.bukkit.entity.Player player, double price, java.lang.String sellMessage)
player
- The player who used the wand.price
- The total price for all the items.sellMessage
- The message that will be sent to the player.public HarvesterHoeSellEvent(org.bukkit.entity.Player player, double price, double multiplier, java.lang.String sellMessage)
player
- The player who used the wand.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 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()