Package zombie.network.packets.hit
Class HitInfo
java.lang.Object
zombie.network.packets.hit.HitInfo
- All Implemented Interfaces:
INetworkPacket
public class HitInfo extends java.lang.Object implements INetworkPacket
-
Field Summary
-
Constructor Summary
Constructors Constructor Description HitInfo()
-
Method Summary
Modifier and Type Method Description java.lang.String
getDescription()
IsoMovingObject
getObject()
int
getPacketSizeBytes()
HitInfo
init(IsoMovingObject movingObject, float float1, float float2, float float3, float float4, float float5)
HitInfo
init(IsoWindow window, float float1, float float2)
void
parse(java.nio.ByteBuffer byteBuffer)
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
isConsistent
-
Field Details
-
object
-
window
-
x
public float x -
y
public float y -
z
public float z -
dot
public float dot -
distSq
public float distSq -
chance
public int chance
-
-
Constructor Details
-
HitInfo
public HitInfo()
-
-
Method Details
-
init
public HitInfo init(IsoMovingObject movingObject, float float1, float float2, float float3, float float4, float float5) -
init
-
getObject
-
parse
public void parse(java.nio.ByteBuffer byteBuffer)- Specified by:
parse
in interfaceINetworkPacket
-
write
- Specified by:
write
in interfaceINetworkPacket
-
getPacketSizeBytes
public int getPacketSizeBytes()- Specified by:
getPacketSizeBytes
in interfaceINetworkPacket
-
getDescription
public java.lang.String getDescription()- Specified by:
getDescription
in interfaceINetworkPacket
-