Class SafetyPacket
java.lang.Object
zombie.characters.Safety
zombie.network.packets.SafetyPacket
- All Implemented Interfaces:
INetworkPacketField, IDescriptor, INetworkPacket
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanisConsistent(UdpConnection connection) voidparse(ByteBuffer b, UdpConnection connection) voidprocessClient(UdpConnection connection) voidprocessServer(PacketTypes.PacketType packetType, UdpConnection connection) voidMethods inherited from class Safety
copyFrom, getCharacter, getCooldown, getToggle, isEnabled, isLast, isToggleAllowed, load, save, setCooldown, setEnabled, setLast, setToggle, toggleSafetyMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IDescriptor
getClassDescription, getDescriptionMethods inherited from interface INetworkPacket
isPostponed, parseClient, parseClientLoading, parseServer, postpone, processClientLoading, sendToClient, sendToClients, sendToRelativeClients, sendToServer, setData, sync
-
Constructor Details
-
SafetyPacket
-
SafetyPacket
public SafetyPacket()
-
-
Method Details
-
parse
- Specified by:
parsein interfaceINetworkPacketField
-
write
- Specified by:
writein interfaceINetworkPacketField
-
getPacketSizeBytes
public int getPacketSizeBytes()- Specified by:
getPacketSizeBytesin interfaceINetworkPacketField
-
isConsistent
- Specified by:
isConsistentin interfaceINetworkPacketField
-
getDescription
- Specified by:
getDescriptionin interfaceIDescriptor- Overrides:
getDescriptionin classSafety
-
processServer
- Specified by:
processServerin interfaceINetworkPacket
-
processClient
- Specified by:
processClientin interfaceINetworkPacket
-