Class PlayerPacket
java.lang.Object
zombie.network.packets.character.PlayerPacket
- All Implemented Interfaces:
AntiCheatNoClip.IAntiCheat, AntiCheatPlayer.IAntiCheat, AntiCheatPower.IAntiCheat, AntiCheatSpeed.IAntiCheat, INetworkPacketField, IDescriptor, INetworkPacket
- Direct Known Subclasses:
PlayerPacketReliable, PlayerPacketUnreliable
public class PlayerPacket
extends Object
implements INetworkPacket, AntiCheatPower.IAntiCheat, AntiCheatSpeed.IAntiCheat, AntiCheatNoClip.IAntiCheat, AntiCheatPlayer.IAntiCheat
-
Field Summary
FieldsModifier and TypeFieldDescriptionshortbooleanfinal PlayerIDstatic final intfinal Predictionfinal PlayerVariables -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortintbytegetPosition(Vector3 position) booleanisConsistent(UdpConnection connection) voidparse(ByteBuffer b, UdpConnection connection) voidprocessClient(UdpConnection connection) voidprocessServer(PacketTypes.PacketType packetType, UdpConnection connection) voidwrite(ByteBuffer b) voidMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IDescriptor
getClassDescription, getDescription, getDescriptionMethods inherited from interface INetworkPacket
isPostponed, parseClient, parseClientLoading, parseServer, postpone, processClientLoading, sendToClient, sendToClients, sendToRelativeClients, sendToServer, setData, sync
-
Field Details
-
PACKET_SIZE_BYTES
public static final int PACKET_SIZE_BYTES- See Also:
-
id
-
prediction
-
booleanVariables
public short booleanVariables -
disconnected
public boolean disconnected -
variables
-
-
Constructor Details
-
PlayerPacket
public PlayerPacket()
-
-
Method Details
-
getPacketSizeBytes
public int getPacketSizeBytes()- Specified by:
getPacketSizeBytesin interfaceINetworkPacketField
-
parse
- Specified by:
parsein interfaceINetworkPacketField
-
write
- Specified by:
writein interfaceINetworkPacketField
-
write
-
set
-
processClient
- Specified by:
processClientin interfaceINetworkPacket
-
processServer
- Specified by:
processServerin interfaceINetworkPacket
-
isConsistent
- Specified by:
isConsistentin interfaceINetworkPacketField
-
getBooleanVariables
public short getBooleanVariables()- Specified by:
getBooleanVariablesin interfaceAntiCheatPower.IAntiCheat
-
getPlayer
- Specified by:
getPlayerin interfaceAntiCheatPlayer.IAntiCheat- Specified by:
getPlayerin interfaceAntiCheatPower.IAntiCheat
-
getMovable
- Specified by:
getMovablein interfaceAntiCheatSpeed.IAntiCheat
-
getPlayerIndex
public byte getPlayerIndex()- Specified by:
getPlayerIndexin interfaceAntiCheatNoClip.IAntiCheat
-
getPosition
- Specified by:
getPositionin interfaceAntiCheatNoClip.IAntiCheat
-