Package zombie.network.packets.hit
Class ZombieHitPlayerPacket
java.lang.Object
zombie.network.packets.hit.HitCharacterPacket
zombie.network.packets.hit.ZombieHitPlayerPacket
- All Implemented Interfaces:
INetworkPacket
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.network.packets.hit.HitCharacterPacket
HitCharacterPacket.HitType
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
attack()
boolean
boolean
isRelevant
(UdpConnection udpConnection) void
parse
(ByteBuffer byteBuffer, UdpConnection udpConnection) protected void
protected void
protected void
process()
protected void
react()
void
boolean
validate
(UdpConnection udpConnection) void
write
(ByteBufferWriter byteBufferWriter) Methods inherited from class zombie.network.packets.hit.HitCharacterPacket
postpone, process, tryProcess, tryProcessInternal
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.INetworkPacket
getPacketSizeBytes, log
-
Field Details
-
wielder
-
target
-
bite
-
-
Constructor Details
-
ZombieHitPlayerPacket
public ZombieHitPlayerPacket()
-
-
Method Details
-
set
-
parse
- Specified by:
parse
in interfaceINetworkPacket
-
write
- Specified by:
write
in interfaceINetworkPacket
- Overrides:
write
in classHitCharacterPacket
-
isRelevant
- Specified by:
isRelevant
in classHitCharacterPacket
-
isConsistent
public boolean isConsistent()- Specified by:
isConsistent
in interfaceINetworkPacket
-
getDescription
- Specified by:
getDescription
in interfaceINetworkPacket
- Overrides:
getDescription
in classHitCharacterPacket
-
preProcess
protected void preProcess()- Overrides:
preProcess
in classHitCharacterPacket
-
process
protected void process()- Overrides:
process
in classHitCharacterPacket
-
postProcess
protected void postProcess()- Overrides:
postProcess
in classHitCharacterPacket
-
attack
protected void attack()- Specified by:
attack
in classHitCharacterPacket
-
react
protected void react()- Specified by:
react
in classHitCharacterPacket
-
validate
- Specified by:
validate
in classHitCharacterPacket
-