Package zombie.network.packets.hit
Class Hit
java.lang.Object
zombie.network.packets.hit.Hit
- All Implemented Interfaces:
INetworkPacket
- Direct Known Subclasses:
VehicleHit
,WeaponHit
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
protected float
protected float
protected float
protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
void
parse
(ByteBuffer byteBuffer, UdpConnection udpConnection) void
set
(boolean boolean1, float float1, float float2, float float3, float float4) 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
-
ignore
protected boolean ignore -
damage
protected float damage -
hitForce
protected float hitForce -
hitDirectionX
protected float hitDirectionX -
hitDirectionY
protected float hitDirectionY
-
-
Constructor Details
-
Hit
public Hit()
-
-
Method Details
-
set
public void set(boolean boolean1, float float1, float float2, float float3, float float4) -
parse
- Specified by:
parse
in interfaceINetworkPacket
-
write
- Specified by:
write
in interfaceINetworkPacket
-
getDescription
- Specified by:
getDescription
in interfaceINetworkPacket
-
getDamage
public float getDamage()
-