Class WrapperPlayClientPlayerInput

java.lang.Object
com.github.retrooper.packetevents.wrapper.PacketWrapper<WrapperPlayClientPlayerInput>
com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientPlayerInput

public class WrapperPlayClientPlayerInput extends PacketWrapper<WrapperPlayClientPlayerInput>
Exists since 1.21.2, includes all movement inputs from the client.

This client is sent every tick, if the movement inputs changed.

Versions below 1.21.2 will only send WrapperPlayClientSteerVehicle when on a vehicle.

  • Constructor Details

    • WrapperPlayClientPlayerInput

      public WrapperPlayClientPlayerInput(PacketReceiveEvent event)
    • WrapperPlayClientPlayerInput

      public WrapperPlayClientPlayerInput(boolean forward, boolean backward, boolean left, boolean right, boolean jump, boolean shift, boolean sprint)
  • Method Details

    • read

      public void read()
      Overrides:
      read in class PacketWrapper<WrapperPlayClientPlayerInput>
    • write

      public void write()
      Overrides:
      write in class PacketWrapper<WrapperPlayClientPlayerInput>
    • copy

      public void copy(WrapperPlayClientPlayerInput wrapper)
      Overrides:
      copy in class PacketWrapper<WrapperPlayClientPlayerInput>
    • isForward

      public boolean isForward()
    • setForward

      public void setForward(boolean forward)
    • isBackward

      public boolean isBackward()
    • setBackward

      public void setBackward(boolean backward)
    • isLeft

      public boolean isLeft()
    • setLeft

      public void setLeft(boolean left)
    • isRight

      public boolean isRight()
    • setRight

      public void setRight(boolean right)
    • isJump

      public boolean isJump()
    • setJump

      public void setJump(boolean jump)
    • isShift

      public boolean isShift()
    • setShift

      public void setShift(boolean shift)
    • isSprint

      public boolean isSprint()
    • setSprint

      public void setSprint(boolean sprint)