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.)
  • 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()