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
- Author:
- Linox
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionClimbingPickLaunchEvent
(Player player, Vector velocity, ClimbingPick pick, ItemStack itemStack, Block block) -
Method Summary
Modifier and TypeMethodDescriptiongetBlock()
This returns theBlock
that was climbed.static HandlerList
This returns theItemStack
that was used.getPick()
This returns theClimbingPick
that was used.boolean
void
setCancelled
(boolean cancel) void
setVelocity
(Vector velocity) Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ClimbingPickLaunchEvent
@ParametersAreNonnullByDefault public ClimbingPickLaunchEvent(Player player, Vector velocity, ClimbingPick pick, ItemStack itemStack, Block block)
-
-
Method Details
-
getVelocity
- Returns:
- The
Vector
of the applied velocity
-
setVelocity
- Parameters:
velocity
- TheVector
velocity to apply
-
getPick
This returns theClimbingPick
that was used.- Returns:
- The
ClimbingPick
that was used
-
getItemStack
This returns theItemStack
that was used.- Returns:
- The
ItemStack
that was used
-
getBlock
This returns theBlock
that was climbed.- Returns:
- The
Block
that was climbed
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-