Class PlayerChangedFitnessAttributeEvent
java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.player.PlayerChangedFitnessAttributeEvent
public class PlayerChangedFitnessAttributeEvent
extends org.bukkit.event.Event
Event thrown when a fitness attribute has changed (fitGainedByDrinking, unhealthyFood, etc.)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPlayerChangedFitnessAttributeEvent
(UUID uuid, String changedAttribute, int newValue) -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the changed value (fitGainedByDrinking, unhealthyFood, etc.)static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
int
Get the new value of the changed attributegetUUID()
Get the UUID of the player whose total fitness was changedMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerChangedFitnessAttributeEvent
-
-
Method Details
-
getUUID
Get the UUID of the player whose total fitness was changed- Returns:
- UUID of player
-
getNewValue
public int getNewValue()Get the new value of the changed attribute- Returns:
- new fitness
-
getChangedAttribute
Get the name of the changed value (fitGainedByDrinking, unhealthyFood, etc.)- Returns:
- the name of the changed attribute
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-