Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ShopEvent extends Event {
- private static final HandlerList HANDLERS = new HandlerList();
- private boolean isCancelled;
- private Player player;
- private String shopName;
- private ItemStack item;
- private int price;
- private int itemStock;
- private boolean isShopDynamic;
- private ShopAction shopAction;
- public ShopEvent(Player player, String shopName, ItemStack item, int price, int itemStock, boolean isShopDynamic, ShopAction shopAction){
- setPlayer(player);
- setShopName(shopName);
- setItem(item);
- setPrice(price);
- setItemStock(itemStock);
- setShopDynamic(isShopDynamic);
- setCancelled(false);
- setShopAction(shopAction);
- }
- @Override
- public HandlerList getHandlers() {
- return HANDLERS;
- }
- public static HandlerList getHandlerList() {
- return HANDLERS;
- }
- public boolean isCancelled() {
- return this.isCancelled;
- }
- public void setCancelled(boolean isCancelled) {
- this.isCancelled = isCancelled;
- }
- public Player getPlayer() {
- return player;
- }
- public void setPlayer(Player player) {
- this.player = player;
- }
- public String getShopName() {
- return shopName;
- }
- public void setShopName(String shopName) {
- this.shopName = shopName;
- }
- public ItemStack getItem() {
- return item;
- }
- public void setItem(ItemStack item) {
- this.item = item;
- }
- public int getPrice() {
- return price;
- }
- public void setPrice(int price) {
- this.price = price;
- }
- public int getItemStock() {
- return itemStock;
- }
- public void setItemStock(int itemStock) {
- this.itemStock = itemStock;
- }
- public boolean isShopDynamic() {
- return isShopDynamic;
- }
- public void setShopDynamic(boolean shopDynamic) {
- isShopDynamic = shopDynamic;
- }
- public ShopAction getShopAction() {
- return shopAction;
- }
- public void setShopAction(ShopAction shopAction) {
- this.shopAction = shopAction;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement