Class PlayerMoveEvent

java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.PlayerMoveEvent

public class PlayerMoveEvent extends Event
Fired when the local player moves. Modules can modify the movement vector or cancel the event to override vanilla movement.
  • Constructor Details

    • PlayerMoveEvent

      public PlayerMoveEvent(net.minecraft.world.entity.MoverType moverType, net.minecraft.world.phys.Vec3 movement)
  • Method Details

    • getMoverType

      public net.minecraft.world.entity.MoverType getMoverType()
    • getMovement

      public net.minecraft.world.phys.Vec3 getMovement()
    • setMovement

      public void setMovement(net.minecraft.world.phys.Vec3 movement)
    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • setX

      public void setX(double x)
    • setY

      public void setY(double y)
    • setZ

      public void setZ(double z)