Package zombie.network.packets
Class PlayerPacket
java.lang.Object
zombie.network.packets.PlayerPacket
- All Implemented Interfaces:
INetworkPacket
public class PlayerPacket extends java.lang.Object implements INetworkPacket
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlayerPacket.l_receivestatic classPlayerPacket.l_send -
Field Summary
Fields Modifier and Type Field Description bytebleedingLevelintbooleanVariablesfloatcollidePointXfloatcollidePointYfloatdirectionbytefootstepSoundRadiusshortidNetworkVariables.PredictionTypesmoveTypestatic intPACKET_SIZE_BYTESbyterealdirintrealtfloatrealxfloatrealybyterealzbooleanusePathFinderPlayerVariablesvariablesshortVehicleIDshortVehicleSeatfloatxfloatybytez -
Constructor Summary
Constructors Constructor Description PlayerPacket() -
Method Summary
Modifier and Type Method Description voidcopy(PlayerPacket playerPacket)intgetPacketSizeBytes()voidparse(java.nio.ByteBuffer byteBuffer)booleanset(IsoPlayer player)voidwrite(ByteBufferWriter byteBufferWriter)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface zombie.network.packets.INetworkPacket
getDescription, isConsistent
-
Field Details
-
PACKET_SIZE_BYTES
public static final int PACKET_SIZE_BYTES- See Also:
- Constant Field Values
-
id
public short id -
x
public float x -
y
public float y -
z
public byte z -
direction
public float direction -
usePathFinder
public boolean usePathFinder -
moveType
-
VehicleID
public short VehicleID -
VehicleSeat
public short VehicleSeat -
booleanVariables
public int booleanVariables -
footstepSoundRadius
public byte footstepSoundRadius -
bleedingLevel
public byte bleedingLevel -
realx
public float realx -
realy
public float realy -
realz
public byte realz -
realdir
public byte realdir -
realt
public int realt -
collidePointX
public float collidePointX -
collidePointY
public float collidePointY -
variables
-
-
Constructor Details
-
PlayerPacket
public PlayerPacket()
-
-
Method Details
-
parse
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parsein interfaceINetworkPacket
-
write
- Specified by:
writein interfaceINetworkPacket
-
getPacketSizeBytes
public int getPacketSizeBytes()- Specified by:
getPacketSizeBytesin interfaceINetworkPacket
-
set
-
copy
-