Package net.actor.api.v1
Schnittstelle IMovement
- Alle bekannten Implementierungsklassen:
Movement
public interface IMovement
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidjump()Lets the attachedLocalPlayerjump for a single tick.voidjump(int ticks) Lets the attachedLocalPlayerjump for the amount of ticks specified.voidjump(BooleanSupplier active) Lets the attachedLocalPlayerjump until the BooleanSupplier doesn't return true anymore.voidsetJumping(boolean jumping) Sets the attachedLocalPlayers movement to always be subject to the passed jumping flag until the flag is overwritten elsewhere.voidsetSneaking(boolean sneaking) Sets the attachedLocalPlayers movement to always be subject to the passed sneaking flag until the flag is overwritten elsewhere.voidsetSprinting(boolean sprinting) Sets the attachedLocalPlayers movement to always be subject to the passed sprinting flag until the flag is overwritten elsewhere.voidsneak()Lets the attachedLocalPlayersneak for a single tick.voidsneak(int ticks) Lets the attachedLocalPlayersneak for the amount of ticks specified.voidsneak(BooleanSupplier active) Lets the attachedLocalPlayersneak until the BooleanSupplier doesn't return true anymore.voidsprint()Lets the attachedLocalPlayersprint for a single tick.voidsprint(int ticks) Lets the attachedLocalPlayersprint for the amount of ticks specified.voidsprint(BooleanSupplier active) Lets the attachedLocalPlayersprint until the BooleanSupplier doesn't return true anymore.voidwalk(EnumSet<MoveDirection> dirs) Lets the attachedLocalPlayerwalk in the given direction(s) for exactly one tick.voidwalk(EnumSet<MoveDirection> dirs, int ticks) Lets the attachedLocalPlayerwalk in the given direction(s) for the amount of ticks specified.voidwalk(EnumSet<MoveDirection> dirs, BooleanSupplier active) Lets the attachedLocalPlayerwalk in the given direction(s) until the BooleanSupplier doesn't return true anymore.
-
Methodendetails
-
walk
Lets the attachedLocalPlayerwalk in the given direction(s) for exactly one tick.- Parameter:
dirs- The (combination) of directions to walk in. Opposing directions cancel each other but are still placed on theLocalPlayer.
-
walk
Lets the attachedLocalPlayerwalk in the given direction(s) for the amount of ticks specified.- Parameter:
dirs- The (combination) of directions to walk in. Opposing directions cancel each other but are still placed on theLocalPlayer.ticks- The amount of ticks to walk for (20 ticks = 1 second). -1 for indefinite walking.
-
walk
Lets the attachedLocalPlayerwalk in the given direction(s) until the BooleanSupplier doesn't return true anymore. The Method cannot be reactivated once the Supplier deactivates. For that you'd have to re-submit the task.- Parameter:
dirs- The (combination) of directions to walk in. Opposing directions cancel each other but are still placed on the LocalPlayer.active- The BooleanSupplier that determines when this walking action should end.
-
setSprinting
void setSprinting(boolean sprinting) Sets the attachedLocalPlayers movement to always be subject to the passed sprinting flag until the flag is overwritten elsewhere.- Parameter:
sprinting- Whether theLocalPlayershould be sprinting or not
-
sprint
void sprint()Lets the attachedLocalPlayersprint for a single tick. -
sprint
void sprint(int ticks) Lets the attachedLocalPlayersprint for the amount of ticks specified.- Parameter:
ticks- The amount of ticks to sprint for (20 ticks = 1 second). -1 for indefinite sprinting.
-
sprint
Lets the attachedLocalPlayersprint until the BooleanSupplier doesn't return true anymore. The method cannot be reactivated once the Supplier deactivates. For that you'd have to re-submit the task.- Parameter:
active- The BooleanSupplier that determines when this sprinting action should end.
-
setSneaking
void setSneaking(boolean sneaking) Sets the attachedLocalPlayers movement to always be subject to the passed sneaking flag until the flag is overwritten elsewhere.- Parameter:
sneaking- Whether theLocalPlayershould be sneaking or not
-
sneak
void sneak()Lets the attachedLocalPlayersneak for a single tick. -
sneak
void sneak(int ticks) Lets the attachedLocalPlayersneak for the amount of ticks specified.- Parameter:
ticks- The amount of ticks to sneak for (20 ticks = 1 second). -1 for indefinite sneaking.
-
sneak
Lets the attachedLocalPlayersneak until the BooleanSupplier doesn't return true anymore. The method cannot be reactivated once the Supplier deactivates. For that you'd have to re-submit the task.- Parameter:
active- The BooleanSupplier that determines when this sneaking action should end.
-
setJumping
void setJumping(boolean jumping) Sets the attachedLocalPlayers movement to always be subject to the passed jumping flag until the flag is overwritten elsewhere.- Parameter:
jumping- Weather theLocalPlayershould be jumping or not
-
jump
void jump()Lets the attachedLocalPlayerjump for a single tick. -
jump
void jump(int ticks) Lets the attachedLocalPlayerjump for the amount of ticks specified.- Parameter:
ticks- The amount of ticks to walk for (20 ticks = 1 second). -1 for indefinite jumping.
-
jump
Lets the attachedLocalPlayerjump until the BooleanSupplier doesn't return true anymore. The Method cannot be reactivated once the Supplier deactivates. For that you'd have to re-submit the task.- Parameter:
active- The BooleanSupplier that determines when this jumping action should end.
-