Package zombie.network.packets.hit
Class VehicleHit
java.lang.Object
zombie.network.packets.hit.Hit
zombie.network.packets.hit.VehicleHit
- All Implemented Interfaces:
IMovable
,INetworkPacket
-
Field Summary
Modifier and TypeFieldDescriptionboolean
boolean
int
float
Fields inherited from class zombie.network.packets.hit.Hit
damage, hitDirectionX, hitDirectionY, hitForce, ignore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
getSpeed()
boolean
void
parse
(ByteBuffer byteBuffer, UdpConnection udpConnection) void
set
(boolean boolean1, float float1, float float2, float float3, float float4, int int1, float float5, boolean boolean2, boolean boolean3) 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.INetworkPacket
getPacketSizeBytes, isConsistent, log
-
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
- Specified by:
parse
in interfaceINetworkPacket
- Overrides:
parse
in classHit
-
write
- Specified by:
write
in interfaceINetworkPacket
- Overrides:
write
in classHit
-
getDescription
- Specified by:
getDescription
in interfaceINetworkPacket
- Overrides:
getDescription
in classHit
-
getSpeed
public float getSpeed() -
isVehicle
public boolean isVehicle()
-