Class PlayerChangeTotalFitnessEvent

java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.player.PlayerChangeTotalFitnessEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class PlayerChangeTotalFitnessEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Event thrown right before someone's total fitness changes
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerChangeTotalFitnessEvent​(UUID uuid, int newFitness)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    int
    Get the new total fitness for this player
    Get the UUID of the player whose total fitness was changed
    boolean
     
    void
    setCancelled​(boolean cancelled)
     

    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

    • PlayerChangeTotalFitnessEvent

      public PlayerChangeTotalFitnessEvent(UUID uuid, int newFitness)
  • Method Details

    • getUUID

      public UUID getUUID()
      Get the UUID of the player whose total fitness was changed
      Returns:
      UUID of player
    • getNewTotalFitness

      public int getNewTotalFitness()
      Get the new total fitness for this player
      Returns:
      new fitness
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

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

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable