Package zombie.network.packets.hit
Class VehicleHitPacket
java.lang.Object
zombie.network.packets.hit.HitCharacterPacket
zombie.network.packets.hit.VehicleHitPacket
- All Implemented Interfaces:
INetworkPacket
- Direct Known Subclasses:
VehicleHitPlayerPacket
,VehicleHitZombiePacket
public abstract class VehicleHitPacket extends HitCharacterPacket implements INetworkPacket
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.network.packets.hit.HitCharacterPacket
HitCharacterPacket.HitType
-
Field Summary
-
Constructor Summary
Constructors Constructor Description VehicleHitPacket(HitCharacterPacket.HitType hitType)
-
Method Summary
Modifier and Type Method Description protected void
attack()
java.lang.String
getDescription()
boolean
isConsistent()
boolean
isRelevant(UdpConnection udpConnection)
void
parse(java.nio.ByteBuffer byteBuffer)
protected void
postProcess()
protected void
preProcess()
void
set(IsoPlayer player, BaseVehicle baseVehicle, boolean boolean1)
void
write(ByteBufferWriter byteBufferWriter)
Methods inherited from class zombie.network.packets.hit.HitCharacterPacket
getHitDescription, postpone, process, process, react, 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
-
Field Details
-
wielder
-
vehicle
-
-
Constructor Details
-
VehicleHitPacket
-
-
Method Details
-
set
-
parse
public void parse(java.nio.ByteBuffer byteBuffer)- 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
public java.lang.String getDescription()- Specified by:
getDescription
in interfaceINetworkPacket
- Overrides:
getDescription
in classHitCharacterPacket
-
preProcess
protected void preProcess()- Overrides:
preProcess
in classHitCharacterPacket
-
postProcess
protected void postProcess()- Overrides:
postProcess
in classHitCharacterPacket
-
attack
protected void attack()- Specified by:
attack
in classHitCharacterPacket
-