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
ConstructorsConstructorDescriptionClimbingPickLaunchEvent(Player player, Vector velocity, ClimbingPick pick, ItemStack itemStack, Block block) -
Method Summary
Modifier and TypeMethodDescriptiongetBlock()This returns theBlockthat was climbed.static HandlerListThis returns theItemStackthat was used.getPick()This returns theClimbingPickthat was used.booleanvoidsetCancelled(boolean cancel) voidsetVelocity(Vector velocity) Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods 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
Vectorof the applied velocity
-
setVelocity
- Parameters:
velocity- TheVectorvelocity to apply
-
getPick
This returns theClimbingPickthat was used.- Returns:
- The
ClimbingPickthat was used
-
getItemStack
This returns theItemStackthat was used.- Returns:
- The
ItemStackthat was used
-
getBlock
This returns theBlockthat was climbed.- Returns:
- The
Blockthat was climbed
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-