Class AdvancementGrantEvent
java.lang.Object
org.bukkit.event.Event
eu.endercentral.crazy_advancements.event.AdvancementGrantEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAdvancementGrantEvent
(AdvancementManager manager, Advancement advancement, Player player) -
Method Summary
Modifier and TypeMethodDescriptionGets the Advancementstatic HandlerList
Gets the ManagerGets the Playerboolean
Gets whether a message will be displayedboolean
Gets whether a toast will be shownvoid
setDisplayMessage
(boolean displayMessage) Sets if a message will be displayedvoid
setShowToast
(boolean showToast) Sets if a toast will be shownMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Field Details
-
handlers
-
-
Constructor Details
-
AdvancementGrantEvent
-
-
Method Details
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-
getManager
Gets the Manager- Returns:
- The Manager this event has been fired from
-
getAdvancement
Gets the Advancement- Returns:
- The Advancement that has been granted
-
getPlayer
Gets the Player- Returns:
- Reciever
-
isShowToast
public boolean isShowToast()Gets whether a toast will be shown- Returns:
- true if a toast will be shown
-
setShowToast
public void setShowToast(boolean showToast) Sets if a toast will be shown- Parameters:
showToast
- Whether toast should be shown
-
isDisplayMessage
public boolean isDisplayMessage()Gets whether a message will be displayed- Returns:
- true if a message will be displayed
-
setDisplayMessage
public void setDisplayMessage(boolean displayMessage) Sets if a message will be displayed- Parameters:
displayMessage
- Whethere message should be displayed
-