public class CInputPacket extends java.lang.Object implements IPacket<IServerPlayNetHandler>
Modifier and Type | Field and Description |
---|---|
private float |
forwardSpeed |
private boolean |
jumping |
private boolean |
sneaking |
private float |
strafeSpeed |
Constructor and Description |
---|
CInputPacket() |
CInputPacket(float strafeSpeedIn,
float forwardSpeedIn,
boolean jumpingIn,
boolean sneakingIn) |
Modifier and Type | Method and Description |
---|---|
float |
getForwardSpeed() |
float |
getStrafeSpeed() |
boolean |
isJumping() |
boolean |
isSneaking() |
void |
processPacket(IServerPlayNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldSkipErrors
private float strafeSpeed
private float forwardSpeed
private boolean jumping
private boolean sneaking
public CInputPacket()
public CInputPacket(float strafeSpeedIn, float forwardSpeedIn, boolean jumpingIn, boolean sneakingIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IServerPlayNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IServerPlayNetHandler>
java.io.IOException
public void processPacket(IServerPlayNetHandler handler)
processPacket
in interface IPacket<IServerPlayNetHandler>
public float getStrafeSpeed()
public float getForwardSpeed()
public boolean isJumping()
public boolean isSneaking()