Class ClimbingPickLaunchEvent

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

public class ClimbingPickLaunchEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable
An Event that is called whenever a Player has used a ClimbingPick on a climbable surface.
Author:
Linox
See Also:
  • Nested Class Summary

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

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

    Fields inherited from class org.bukkit.event.player.PlayerEvent

    player
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClimbingPickLaunchEvent(org.bukkit.entity.Player player, org.bukkit.util.Vector velocity, ClimbingPick pick, org.bukkit.inventory.ItemStack itemStack, org.bukkit.block.Block block)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.block.Block
    This returns the Block that was climbed.
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    org.bukkit.inventory.ItemStack
    This returns the ItemStack that was used.
    This returns the ClimbingPick that was used.
    org.bukkit.util.Vector
    This returns the velocity Vector that was applied to the Player who used the ClimbingPick.
    boolean
     
    void
    setCancelled(boolean cancel)
     
    void
    setVelocity(org.bukkit.util.Vector velocity)
    Use this to change the velocity Vector applied to the Player.

    Methods inherited from class org.bukkit.event.player.PlayerEvent

    getPlayer

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • ClimbingPickLaunchEvent

      @ParametersAreNonnullByDefault public ClimbingPickLaunchEvent(org.bukkit.entity.Player player, org.bukkit.util.Vector velocity, ClimbingPick pick, org.bukkit.inventory.ItemStack itemStack, org.bukkit.block.Block block)
  • Method Details

    • getVelocity

      @Nonnull public org.bukkit.util.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 org.bukkit.util.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 org.bukkit.inventory.ItemStack getItemStack()
      This returns the ItemStack that was used.
      Returns:
      The ItemStack that was used
    • getBlock

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

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

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

      @Nonnull public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

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