Class PlayerPacket
java.lang.Object
zombie.network.packets.character.PlayerPacket
- All Implemented Interfaces:
AntiCheatNoClip.IAntiCheat
,AntiCheatPlayer.IAntiCheat
,AntiCheatPower.IAntiCheat
,AntiCheatRole.IAntiCheat
,AntiCheatSpeed.IAntiCheat
,INetworkPacketField
,IDescriptor
,INetworkPacket
- Direct Known Subclasses:
PlayerPacketReliable
,PlayerPacketUnreliable
public class PlayerPacket
extends Object
implements INetworkPacket, AntiCheatPower.IAntiCheat, AntiCheatRole.IAntiCheat, AntiCheatSpeed.IAntiCheat, AntiCheatNoClip.IAntiCheat, AntiCheatPlayer.IAntiCheat
-
Field Summary
FieldsModifier and TypeFieldDescriptionbyte
int
float
float
float
boolean
float
byte
static final int
byte
int
float
float
byte
int
byte
boolean
short
short
float
float
byte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
copy
(PlayerPacket var1) int
int
byte
getPosition
(Vector3 vector3) int
void
parse
(ByteBuffer var1, UdpConnection var2) void
processClient
(UdpConnection var1) void
void
processServer
(PacketTypes.PacketType var1, UdpConnection var2) void
void
write
(ByteBufferWriter var1) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.network.packets.IDescriptor
getClassDescription, getDescription, getDescription
Methods inherited from interface zombie.network.packets.INetworkPacket
parseClient, parseClientLoading, parseServer, sendToClient, sendToClients, sendToConnection, sendToRelativeClients, sendToServer, setData, sync, tryProcessInternal
Methods inherited from interface zombie.network.fields.INetworkPacketField
isConsistent
-
Field Details
-
PACKET_SIZE_BYTES
public static final int PACKET_SIZE_BYTES- See Also:
-
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 -
roleId
public int roleId -
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 -
endurance
public float endurance -
variables
-
disconnected
public boolean disconnected -
type
public byte type
-
-
Constructor Details
-
PlayerPacket
public PlayerPacket()
-
-
Method Details
-
parse
- Specified by:
parse
in interfaceINetworkPacket
- Specified by:
parse
in interfaceINetworkPacketField
-
write
- Specified by:
write
in interfaceINetworkPacketField
-
getPacketSizeBytes
public int getPacketSizeBytes()- Specified by:
getPacketSizeBytes
in interfaceINetworkPacketField
-
set
-
copy
-
processClient
- Specified by:
processClient
in interfaceINetworkPacket
-
processClientLoading
- Specified by:
processClientLoading
in interfaceINetworkPacket
-
processServer
- Specified by:
processServer
in interfaceINetworkPacket
-
getBooleanVariables
public int getBooleanVariables()- Specified by:
getBooleanVariables
in interfaceAntiCheatPower.IAntiCheat
-
getRoleID
public int getRoleID()- Specified by:
getRoleID
in interfaceAntiCheatRole.IAntiCheat
-
getPlayer
- Specified by:
getPlayer
in interfaceAntiCheatPlayer.IAntiCheat
- Specified by:
getPlayer
in interfaceAntiCheatPower.IAntiCheat
- Specified by:
getPlayer
in interfaceAntiCheatRole.IAntiCheat
-
getMovable
- Specified by:
getMovable
in interfaceAntiCheatSpeed.IAntiCheat
-
getPlayerIndex
public byte getPlayerIndex()- Specified by:
getPlayerIndex
in interfaceAntiCheatNoClip.IAntiCheat
-
getPosition
- Specified by:
getPosition
in interfaceAntiCheatNoClip.IAntiCheat
-