Class ItemTransactionPacket
java.lang.Object
zombie.core.Transaction
zombie.network.packets.ItemTransactionPacket
- All Implemented Interfaces:
AntiCheatTransaction.IAntiCheat, INetworkPacketField, IDescriptor, INetworkPacket
public class ItemTransactionPacket
extends Transaction
implements INetworkPacket, AntiCheatTransaction.IAntiCheat
-
Nested Class Summary
Nested classes/interfaces inherited from class Transaction
Transaction.TransactionState -
Field Summary
FieldsFields inherited from class Transaction
square -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytegetState()voidparse(ByteBuffer b, UdpConnection connection) voidprocessClient(UdpConnection connection) voidprocessServer(PacketTypes.PacketType packetType, UdpConnection connection) voidsetDuration(long duration) voidMethods inherited from class Transaction
set, setState, setTimeData, toStringMethods inherited from interface IDescriptor
getClassDescription, getDescription, getDescriptionMethods inherited from interface INetworkPacket
isPostponed, parseClient, parseClientLoading, parseServer, postpone, processClientLoading, sendToClient, sendToClients, sendToRelativeClients, sendToServer, setData, syncMethods inherited from interface INetworkPacketField
getPacketSizeBytes, isConsistent
-
Field Details
-
duration
public long duration -
consistent
public byte consistent
-
-
Constructor Details
-
ItemTransactionPacket
public ItemTransactionPacket()
-
-
Method Details
-
write
- Specified by:
writein interfaceINetworkPacketField
-
parse
- Specified by:
parsein interfaceINetworkPacketField
-
processClient
- Specified by:
processClientin interfaceINetworkPacket
-
processServer
- Specified by:
processServerin interfaceINetworkPacket
-
setDuration
public void setDuration(long duration) - Overrides:
setDurationin classTransaction
-
getState
- Specified by:
getStatein interfaceAntiCheatTransaction.IAntiCheat
-
getConsistent
public byte getConsistent()- Specified by:
getConsistentin interfaceAntiCheatTransaction.IAntiCheat
-