Class PlayerHit
java.lang.Object
zombie.network.packets.hit.PlayerHit
- All Implemented Interfaces:
INetworkPacketField
,HitCharacter
,IDescriptor
,INetworkPacket
- Direct Known Subclasses:
PlayerHitAnimalPacket
,PlayerHitObjectPacket
,PlayerHitPlayerPacket
,PlayerHitSquarePacket
,PlayerHitVehiclePacket
,PlayerHitZombiePacket
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attack()
boolean
isConsistent
(UdpConnection udpConnection) boolean
isRelevant
(UdpConnection udpConnection) void
parse
(ByteBuffer byteBuffer, UdpConnection udpConnection) void
void
boolean
void
write
(ByteBufferWriter byteBufferWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.network.packets.hit.HitCharacter
log, postpone, process, processClient, processServer, react, tryProcessInternal
Methods inherited from interface zombie.network.packets.IDescriptor
getClassDescription, getDescription, getDescription
Methods inherited from interface zombie.network.packets.INetworkPacket
parseClient, parseClientLoading, parseServer, processClientLoading, sendToClient, sendToClients, sendToConnection, sendToRelativeClients, sendToServer, setData, sync
Methods inherited from interface zombie.network.fields.INetworkPacketField
getPacketSizeBytes
-
Field Details
-
wielder
-
weapon
-
-
Constructor Details
-
PlayerHit
public PlayerHit()
-
-
Method Details
-
set
-
parse
- Specified by:
parse
in interfaceINetworkPacket
- Specified by:
parse
in interfaceINetworkPacketField
-
write
- Specified by:
write
in interfaceINetworkPacketField
-
isRelevant
- Specified by:
isRelevant
in interfaceHitCharacter
-
isConsistent
- Specified by:
isConsistent
in interfaceINetworkPacketField
-
preProcess
public void preProcess()- Specified by:
preProcess
in interfaceHitCharacter
-
postProcess
public void postProcess()- Specified by:
postProcess
in interfaceHitCharacter
-
attack
public void attack()- Specified by:
attack
in interfaceHitCharacter
-