Class EntityToggleSwimEvent

java.lang.Object
org.bukkit.event.Event
me.deecaad.weaponmechanics.events.EntityToggleSwimEvent

public class EntityToggleSwimEvent extends org.bukkit.event.Event
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    EntityToggleSwimEvent(org.bukkit.entity.LivingEntity livingEntity, boolean isSwimming)
    Called when player starts or stops swimming
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     
    org.bukkit.entity.LivingEntity
     
    boolean
     

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • EntityToggleSwimEvent

      public EntityToggleSwimEvent(org.bukkit.entity.LivingEntity livingEntity, boolean isSwimming)
      Called when player starts or stops swimming
      Parameters:
      livingEntity - the livingEntity used in event
      isSwimming - is swimming
  • Method Details

    • getLivingEntity

      public org.bukkit.entity.LivingEntity getLivingEntity()
      Returns:
      the living entity
    • isSwimming

      public boolean isSwimming()
      Returns:
      true if player goes swimming and false if stops
    • getHandlers

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

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