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

    Constructors
    Constructor
    Description
    PlayerChangedFitnessAttributeEvent​(UUID uuid, String changedAttribute, int newValue)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get 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 attribute
    Get the UUID of the player whose total fitness was changed

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PlayerChangedFitnessAttributeEvent

      public PlayerChangedFitnessAttributeEvent(UUID uuid, String changedAttribute, int newValue)
  • Method Details

    • getUUID

      public UUID 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

      public String 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 class org.bukkit.event.Event
    • getHandlerList

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