Class StatePacket
java.lang.Object
zombie.network.fields.Position
zombie.network.packets.actions.StatePacket
- All Implemented Interfaces:
INetworkPacketField, IPositional, IDescriptor, INetworkPacket
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply()getStage()getState()booleanisAway()booleanisConsistent(UdpConnection connection) booleanisReady()voidparse(ByteBuffer b, UdpConnection connection) voidprocessClient(UdpConnection connection) voidprocessServer(PacketTypes.PacketType packetType, UdpConnection connection) voidvoidupdate(StatePacket packet) 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, syncMethods inherited from interface INetworkPacketField
getPacketSizeBytesMethods inherited from interface IPositional
isInRange
-
Field Details
-
timestamp
public long timestamp
-
-
Constructor Details
-
StatePacket
public StatePacket()
-
-
Method Details
-
setData
- Specified by:
setDatain interfaceINetworkPacket
-
parse
- Specified by:
parsein interfaceINetworkPacketField- Overrides:
parsein classPosition
-
write
- Specified by:
writein interfaceINetworkPacketField- Overrides:
writein classPosition
-
processClient
- Specified by:
processClientin interfaceINetworkPacket
-
processServer
- Specified by:
processServerin interfaceINetworkPacket
-
isConsistent
- Specified by:
isConsistentin interfaceINetworkPacketField
-
isAway
public boolean isAway() -
isReady
public boolean isReady() -
getCharacter
-
getState
-
getStage
-
getEvents
-
update
-
apply
public void apply()
-