Class PlayerRateBusinessEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
us.teaminceptus.novaconomy.api.events.player.PlayerRateBusinessEvent
All Implemented Interfaces:
Cancellable

public class PlayerRateBusinessEvent extends PlayerEvent implements Cancellable
Called before a Player rates a business
  • Constructor Details

    • PlayerRateBusinessEvent

      public PlayerRateBusinessEvent(Player p, @NotNull @NotNull Business business, @NotNull @NotNull Rating rating) throws IllegalArgumentException
      Constructs a PlayerRateBusinessEvent.
      Parameters:
      p - Player rating the business
      business - Business being rated
      rating - Rating being given
      Throws:
      IllegalArgumentException - if business or rating is null
  • Method Details

    • getBusiness

      @NotNull public @NotNull Business getBusiness()
      Fetches the Business involved in this event.
      Returns:
      Business involved
    • getRating

      @NotNull public @NotNull Rating getRating()
      Fetches the Rating being given.
      Returns:
      Rating being given
    • setRating

      public void setRating(@NotNull @NotNull Rating rating) throws IllegalArgumentException
      Sets the Rating being given.
      Parameters:
      rating - Rating being given
      Throws:
      IllegalArgumentException - if rating is null
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()
      Fecthes the Event Handlers.
      Returns:
      Event Handlers
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface Cancellable