Class ClimbingPickLaunchEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.github.thebusybiscuit.slimefun4.api.events.ClimbingPickLaunchEvent
All Implemented Interfaces:
Cancellable

public class ClimbingPickLaunchEvent extends PlayerEvent implements Cancellable
An Event that is called whenever a Player has used a ClimbingPick on a climbable surface.
Author:
Linox
See Also:
  • Constructor Details

  • Method Details

    • getVelocity

      @Nonnull public Vector getVelocity()
      This returns the velocity Vector that was applied to the Player who used the ClimbingPick.
      Returns:
      The Vector of the applied velocity
    • setVelocity

      public void setVelocity(@Nonnull Vector velocity)
      Use this to change the velocity Vector applied to the Player.
      Parameters:
      velocity - The Vector velocity to apply
    • getPick

      @Nonnull public ClimbingPick getPick()
      This returns the ClimbingPick that was used.
      Returns:
      The ClimbingPick that was used
    • getItemStack

      @Nonnull public ItemStack getItemStack()
      This returns the ItemStack that was used.
      Returns:
      The ItemStack that was used
    • getBlock

      @Nonnull public Block getBlock()
      This returns the Block that was climbed.
      Returns:
      The Block that was climbed
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface Cancellable
    • getHandlerList

      @Nonnull public static HandlerList getHandlerList()
    • getHandlers

      @Nonnull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event