public class ShopBuySellEvent extends ShopEvent implements org.bukkit.event.Cancellable
Modifier and Type | Class and Description |
---|---|
static class |
ShopBuySellEvent.Type |
Constructor and Description |
---|
ShopBuySellEvent(org.bukkit.entity.Player player,
Shop shop,
ShopBuySellEvent.Type type,
int newAmount,
double newPrice) |
Modifier and Type | Method and Description |
---|---|
int |
getNewAmount() |
double |
getNewPrice() |
org.bukkit.entity.Player |
getPlayer() |
Shop |
getShop() |
ShopBuySellEvent.Type |
getType() |
boolean |
isCancelled() |
void |
setCancelled(boolean cancel) |
getHandlers
public ShopBuySellEvent(org.bukkit.entity.Player player, Shop shop, ShopBuySellEvent.Type type, int newAmount, double newPrice)
public Shop getShop()
public ShopBuySellEvent.Type getType()
public int getNewAmount()
public double getNewPrice()
public org.bukkit.entity.Player getPlayer()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancel)
setCancelled
in interface org.bukkit.event.Cancellable
Copyright © 2016. All rights reserved.