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 floatprotected floatprotected floatprotected floatprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatvoidparse(ByteBuffer byteBuffer, UdpConnection udpConnection) voidset(boolean boolean1, float float1, float float2, float float3, float float4) 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, 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:
parsein interfaceINetworkPacket
-
write
- Specified by:
writein interfaceINetworkPacket
-
getDescription
- Specified by:
getDescriptionin interfaceINetworkPacket
-
getDamage
public float getDamage()
-