Class BedwarsItemBoughtEvent

java.lang.Object
org.bukkit.event.Event
org.screamingsandals.bedwars.api.events.BedwarsItemBoughtEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class BedwarsItemBoughtEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
  • Constructor Details

    • BedwarsItemBoughtEvent

      public BedwarsItemBoughtEvent(Game game, org.bukkit.entity.Player customer, org.bukkit.inventory.ItemStack item, int price)
  • Method Details

    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • getGame

      public Game getGame()
    • getCustomer

      public org.bukkit.entity.Player getCustomer()
    • getItem

      public org.bukkit.inventory.ItemStack getItem()
    • getPrice

      public int getPrice()
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • toString

      public String toString()
      Overrides:
      toString in class Object