Package net.actor.impl
Klasse Movement
java.lang.Object
net.actor.impl.Movement
- Alle implementierten Schnittstellen:
IMovement,IDeserializable
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoiddeinit()voidjump()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.
-
Konstruktordetails
-
Movement
-
-
Methodendetails
-
walk
Beschreibung aus Schnittstelle kopiert:IMovementLets the attachedLocalPlayerwalk in the given direction(s) for exactly one tick. -
walk
Beschreibung aus Schnittstelle kopiert:IMovementLets the attachedLocalPlayerwalk in the given direction(s) for the amount of ticks specified. -
walk
Beschreibung aus Schnittstelle kopiert:IMovementLets 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. -
setSprinting
public void setSprinting(boolean sprinting) Beschreibung aus Schnittstelle kopiert:IMovementSets the attachedLocalPlayers movement to always be subject to the passed sprinting flag until the flag is overwritten elsewhere.- Angegeben von:
setSprintingin SchnittstelleIMovement- Parameter:
sprinting- Whether theLocalPlayershould be sprinting or not
-
sprint
public void sprint()Beschreibung aus Schnittstelle kopiert:IMovementLets the attachedLocalPlayersprint for a single tick. -
sprint
public void sprint(int ticks) Beschreibung aus Schnittstelle kopiert:IMovementLets the attachedLocalPlayersprint for the amount of ticks specified. -
sprint
Beschreibung aus Schnittstelle kopiert:IMovementLets 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. -
setSneaking
public void setSneaking(boolean sneaking) Beschreibung aus Schnittstelle kopiert:IMovementSets the attachedLocalPlayers movement to always be subject to the passed sneaking flag until the flag is overwritten elsewhere.- Angegeben von:
setSneakingin SchnittstelleIMovement- Parameter:
sneaking- Whether theLocalPlayershould be sneaking or not
-
sneak
public void sneak()Beschreibung aus Schnittstelle kopiert:IMovementLets the attachedLocalPlayersneak for a single tick. -
sneak
public void sneak(int ticks) Beschreibung aus Schnittstelle kopiert:IMovementLets the attachedLocalPlayersneak for the amount of ticks specified. -
sneak
Beschreibung aus Schnittstelle kopiert:IMovementLets 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. -
setJumping
public void setJumping(boolean jumping) Beschreibung aus Schnittstelle kopiert:IMovementSets the attachedLocalPlayers movement to always be subject to the passed jumping flag until the flag is overwritten elsewhere.- Angegeben von:
setJumpingin SchnittstelleIMovement- Parameter:
jumping- Weather theLocalPlayershould be jumping or not
-
jump
public void jump()Beschreibung aus Schnittstelle kopiert:IMovementLets the attachedLocalPlayerjump for a single tick. -
jump
public void jump(int ticks) Beschreibung aus Schnittstelle kopiert:IMovementLets the attachedLocalPlayerjump for the amount of ticks specified. -
jump
Beschreibung aus Schnittstelle kopiert:IMovementLets 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. -
deinit
public void deinit()- Angegeben von:
deinitin SchnittstelleIDeserializable
-