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
Called before a Player rates a business
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player -
Constructor Summary
ConstructorsConstructorDescriptionPlayerRateBusinessEvent(Player p, @NotNull Business business, @NotNull Rating rating) Constructs a PlayerRateBusinessEvent. -
Method Summary
Modifier and TypeMethodDescription@NotNull BusinessFetches the Business involved in this event.static HandlerListFecthes the Event Handlers.@NotNull RatingFetches the Rating being given.booleanvoidsetCancelled(boolean cancel) voidSets the Rating being given.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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 businessbusiness- Business being ratedrating- Rating being given- Throws:
IllegalArgumentException- if business or rating is null
-
-
Method Details
-
getBusiness
Fetches the Business involved in this event.- Returns:
- Business involved
-
getRating
Fetches the Rating being given.- Returns:
- Rating being given
-
setRating
Sets the Rating being given.- Parameters:
rating- Rating being given- Throws:
IllegalArgumentException- if rating is null
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
Fecthes the Event Handlers.- Returns:
- Event Handlers
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-