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() |
ShopBuySellEvent.Type |
getType() |
boolean |
isCancelled() |
void |
setCancelled(boolean cancel) |
getHandlerList, getHandlers, getPlayer, getShop
public ShopBuySellEvent(org.bukkit.entity.Player player, Shop shop, ShopBuySellEvent.Type type, int newAmount, double newPrice)
public ShopBuySellEvent.Type getType()
public int getNewAmount()
public double getNewPrice()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancel)
setCancelled
in interface org.bukkit.event.Cancellable
Copyright © 2017. All rights reserved.