Package zombie.network.packets.hit
Class Hit
java.lang.Object
zombie.network.packets.hit.Hit
- All Implemented Interfaces:
INetworkPacket
- Direct Known Subclasses:
VehicleHit
,WeaponHit
public abstract class Hit extends java.lang.Object implements INetworkPacket
-
Field Summary
Fields Modifier and Type Field Description protected float
damage
protected float
hitDirectionX
protected float
hitDirectionY
protected float
hitForce
protected boolean
ignore
-
Constructor Summary
Constructors Constructor Description Hit()
-
Method Summary
Modifier and Type Method Description java.lang.String
getDescription()
void
parse(java.nio.ByteBuffer byteBuffer)
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
-
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
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parse
in interfaceINetworkPacket
-
write
- Specified by:
write
in interfaceINetworkPacket
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescription
in interfaceINetworkPacket
-