Package cn.nukkit.event.player
Class PlayerMoveEvent
java.lang.Object
cn.nukkit.event.Event
cn.nukkit.event.player.PlayerEvent
cn.nukkit.event.player.PlayerMoveEvent
- All Implemented Interfaces:
Cancellable
-
Field Summary
Fields inherited from class cn.nukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerMoveEvent
(Player player, Location from, Location to) PlayerMoveEvent
(Player player, Location from, Location to, boolean resetBlocks) -
Method Summary
Modifier and TypeMethodDescriptiongetFrom()
static HandlerList
getTo()
boolean
void
void
void
setResetBlocksAround
(boolean value) void
Methods inherited from class cn.nukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class cn.nukkit.event.Event
getEventName, isCancelled, setCancelled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.event.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
PlayerMoveEvent
-
PlayerMoveEvent
-
-
Method Details
-
getHandlers
-
getFrom
-
setFrom
-
getTo
-
setTo
-
isResetBlocksAround
public boolean isResetBlocksAround() -
setResetBlocksAround
public void setResetBlocksAround(boolean value) -
setCancelled
public void setCancelled()- Specified by:
setCancelled
in interfaceCancellable
- Overrides:
setCancelled
in classEvent
-