Schnittstelle IMovement

Alle bekannten Implementierungsklassen:
Movement

public interface IMovement
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    Lets the attached LocalPlayer jump for a single tick.
    void
    jump(int ticks)
    Lets the attached LocalPlayer jump for the amount of ticks specified.
    void
    Lets the attached LocalPlayer jump until the BooleanSupplier doesn't return true anymore.
    void
    setJumping(boolean jumping)
    Sets the attached LocalPlayers movement to always be subject to the passed jumping flag until the flag is overwritten elsewhere.
    void
    setSneaking(boolean sneaking)
    Sets the attached LocalPlayers movement to always be subject to the passed sneaking flag until the flag is overwritten elsewhere.
    void
    setSprinting(boolean sprinting)
    Sets the attached LocalPlayers movement to always be subject to the passed sprinting flag until the flag is overwritten elsewhere.
    void
    Lets the attached LocalPlayer sneak for a single tick.
    void
    sneak(int ticks)
    Lets the attached LocalPlayer sneak for the amount of ticks specified.
    void
    Lets the attached LocalPlayer sneak until the BooleanSupplier doesn't return true anymore.
    void
    Lets the attached LocalPlayer sprint for a single tick.
    void
    sprint(int ticks)
    Lets the attached LocalPlayer sprint for the amount of ticks specified.
    void
    Lets the attached LocalPlayer sprint until the BooleanSupplier doesn't return true anymore.
    void
    Lets the attached LocalPlayer walk in the given direction(s) for exactly one tick.
    void
    walk(EnumSet<MoveDirection> dirs, int ticks)
    Lets the attached LocalPlayer walk in the given direction(s) for the amount of ticks specified.
    void
    Lets the attached LocalPlayer walk in the given direction(s) until the BooleanSupplier doesn't return true anymore.
  • Methodendetails

    • walk

      void walk(EnumSet<MoveDirection> dirs)
      Lets the attached LocalPlayer walk 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 the LocalPlayer.
    • walk

      void walk(EnumSet<MoveDirection> dirs, int ticks)
      Lets the attached LocalPlayer walk 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 the LocalPlayer.
      ticks - The amount of ticks to walk for (20 ticks = 1 second). -1 for indefinite walking.
    • walk

      void walk(EnumSet<MoveDirection> dirs, BooleanSupplier active)
      Lets the attached LocalPlayer walk 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 attached LocalPlayers movement to always be subject to the passed sprinting flag until the flag is overwritten elsewhere.
      Parameter:
      sprinting - Whether the LocalPlayer should be sprinting or not
    • sprint

      void sprint()
      Lets the attached LocalPlayer sprint for a single tick.
    • sprint

      void sprint(int ticks)
      Lets the attached LocalPlayer sprint for the amount of ticks specified.
      Parameter:
      ticks - The amount of ticks to sprint for (20 ticks = 1 second). -1 for indefinite sprinting.
    • sprint

      void sprint(BooleanSupplier active)
      Lets the attached LocalPlayer sprint 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 attached LocalPlayers movement to always be subject to the passed sneaking flag until the flag is overwritten elsewhere.
      Parameter:
      sneaking - Whether the LocalPlayer should be sneaking or not
    • sneak

      void sneak()
      Lets the attached LocalPlayer sneak for a single tick.
    • sneak

      void sneak(int ticks)
      Lets the attached LocalPlayer sneak for the amount of ticks specified.
      Parameter:
      ticks - The amount of ticks to sneak for (20 ticks = 1 second). -1 for indefinite sneaking.
    • sneak

      void sneak(BooleanSupplier active)
      Lets the attached LocalPlayer sneak 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 attached LocalPlayers movement to always be subject to the passed jumping flag until the flag is overwritten elsewhere.
      Parameter:
      jumping - Weather the LocalPlayer should be jumping or not
    • jump

      void jump()
      Lets the attached LocalPlayer jump for a single tick.
    • jump

      void jump(int ticks)
      Lets the attached LocalPlayer jump for the amount of ticks specified.
      Parameter:
      ticks - The amount of ticks to walk for (20 ticks = 1 second). -1 for indefinite jumping.
    • jump

      void jump(BooleanSupplier active)
      Lets the attached LocalPlayer jump 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.