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
- 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
ConstructorsConstructorDescriptionClimbingPickLaunchEvent(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 TypeMethodDescriptionorg.bukkit.block.BlockgetBlock()This returns theBlockthat was climbed.static org.bukkit.event.HandlerListorg.bukkit.event.HandlerListorg.bukkit.inventory.ItemStackThis returns theItemStackthat was used.getPick()This returns theClimbingPickthat was used.org.bukkit.util.VectorbooleanvoidsetCancelled(boolean cancel) voidsetVelocity(org.bukkit.util.Vector velocity) Use this to change the velocityVectorapplied to thePlayer.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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()- Returns:
- The
Vectorof the applied velocity
-
setVelocity
public void setVelocity(@Nonnull org.bukkit.util.Vector velocity) Use this to change the velocityVectorapplied to thePlayer.- Parameters:
velocity- TheVectorvelocity to apply
-
getPick
This returns theClimbingPickthat was used.- Returns:
- The
ClimbingPickthat was used
-
getItemStack
@Nonnull public org.bukkit.inventory.ItemStack getItemStack()This returns theItemStackthat was used.- Returns:
- The
ItemStackthat was used
-
getBlock
@Nonnull public org.bukkit.block.Block getBlock()This returns theBlockthat was climbed.- Returns:
- The
Blockthat was climbed
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlerList
@Nonnull public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@Nonnull public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-