Package zombie.network.packets.hit
Class VehicleHit
java.lang.Object
zombie.network.packets.hit.Hit
zombie.network.packets.hit.VehicleHit
- All Implemented Interfaces:
INetworkPacket
public class VehicleHit extends Hit implements INetworkPacket
-
Field Summary
Fields Modifier and Type Field Description booleanisTargetHitFromBehindbooleanisVehicleHitFromBehindintvehicleDamagefloatvehicleSpeedFields inherited from class zombie.network.packets.hit.Hit
damage, hitDirectionX, hitDirectionY, hitForce, ignore -
Constructor Summary
Constructors Constructor Description VehicleHit() -
Method Summary
Modifier and Type Method Description java.lang.StringgetDescription()voidparse(java.nio.ByteBuffer byteBuffer)voidset(boolean boolean1, float float1, float float2, float float3, float float4, int int1, float float5, boolean boolean2, boolean boolean3)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, isConsistent
-
Field Details
-
vehicleDamage
public int vehicleDamage -
vehicleSpeed
public float vehicleSpeed -
isVehicleHitFromBehind
public boolean isVehicleHitFromBehind -
isTargetHitFromBehind
public boolean isTargetHitFromBehind
-
-
Constructor Details
-
VehicleHit
public VehicleHit()
-
-
Method Details
-
set
public void set(boolean boolean1, float float1, float float2, float float3, float float4, int int1, float float5, boolean boolean2, boolean boolean3) -
parse
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parsein interfaceINetworkPacket- Overrides:
parsein classHit
-
write
- Specified by:
writein interfaceINetworkPacket- Overrides:
writein classHit
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescriptionin interfaceINetworkPacket- Overrides:
getDescriptionin classHit
-