Class WeaponHit

java.lang.Object
zombie.network.packets.hit.Hit
zombie.network.packets.hit.WeaponHit
All Implemented Interfaces:
INetworkPacket

public class WeaponHit
extends Hit
implements INetworkPacket
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected boolean hitHead  
    protected float range  

    Fields inherited from class zombie.network.packets.hit.Hit

    damage, hitDirectionX, hitDirectionY, hitForce, ignore
  • Constructor Summary

    Constructors
    Constructor Description
    WeaponHit()  
  • 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, float float5, boolean boolean2)  
    void write​(ByteBufferWriter byteBufferWriter)  

    Methods inherited from class zombie.network.packets.hit.Hit

    set

    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

    • range

      protected float range
    • hitHead

      protected boolean hitHead
  • Constructor Details

    • WeaponHit

      public WeaponHit()
  • Method Details

    • set

      public void set​(boolean boolean1, float float1, float float2, float float3, float float4, float float5, boolean boolean2)
    • parse

      public void parse​(java.nio.ByteBuffer byteBuffer)
      Specified by:
      parse in interface INetworkPacket
      Overrides:
      parse in class Hit
    • write

      public void write​(ByteBufferWriter byteBufferWriter)
      Specified by:
      write in interface INetworkPacket
      Overrides:
      write in class Hit
    • getDescription

      public java.lang.String getDescription()
      Specified by:
      getDescription in interface INetworkPacket
      Overrides:
      getDescription in class Hit