Package zombie.network.packets.hit
Class Weapon
java.lang.Object
zombie.network.packets.hit.Instance
zombie.network.packets.hit.Weapon
- All Implemented Interfaces:
INetworkPacket
public class Weapon extends Instance implements INetworkPacket
-
Field Summary
Fields Modifier and Type Field Description protected InventoryItemitemprotected HandWeaponweapon -
Constructor Summary
Constructors Constructor Description Weapon() -
Method Summary
Modifier and Type Method Description java.lang.StringgetDescription()booleanisConsistent()voidparse(java.nio.ByteBuffer byteBuffer)voidparse(java.nio.ByteBuffer byteBuffer, IsoLivingCharacter livingCharacter)voidset(HandWeapon handWeapon)voidwrite(ByteBufferWriter byteBufferWriter)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface zombie.network.packets.INetworkPacket
getPacketSizeBytes
-
Field Details
-
item
-
weapon
-
-
Constructor Details
-
Weapon
public Weapon()
-
-
Method Details
-
set
-
parse
-
parse
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parsein interfaceINetworkPacket- Overrides:
parsein classInstance
-
write
- Specified by:
writein interfaceINetworkPacket- Overrides:
writein classInstance
-
isConsistent
public boolean isConsistent()- Specified by:
isConsistentin interfaceINetworkPacket- Overrides:
isConsistentin classInstance
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescriptionin interfaceINetworkPacket- Overrides:
getDescriptionin classInstance
-