Class ZomboidNetData

java.lang.Object
zombie.spnetwork.ZomboidNetData
All Implemented Interfaces:
IZomboidPacket

public final class ZomboidNetData
extends java.lang.Object
implements IZomboidPacket
  • Field Summary

    Fields
    Modifier and Type Field Description
    java.nio.ByteBuffer buffer  
    zombie.spnetwork.UdpConnection connection  
    short length  
    short type  
  • Constructor Summary

    Constructors
    Constructor Description
    ZomboidNetData()  
    ZomboidNetData​(int int1)  
  • Method Summary

    Modifier and Type Method Description
    boolean isConnect()  
    boolean isDisconnect()  
    void read​(short short1, java.nio.ByteBuffer byteBuffer, zombie.spnetwork.UdpConnection udpConnection)  
    void reset()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • type

      public short type
    • length

      public short length
    • buffer

      public java.nio.ByteBuffer buffer
    • connection

      public zombie.spnetwork.UdpConnection connection
  • Constructor Details

    • ZomboidNetData

      public ZomboidNetData()
    • ZomboidNetData

      public ZomboidNetData​(int int1)
  • Method Details

    • reset

      public void reset()
    • read

      public void read​(short short1, java.nio.ByteBuffer byteBuffer, zombie.spnetwork.UdpConnection udpConnection)
    • isConnect

      public boolean isConnect()
      Specified by:
      isConnect in interface IZomboidPacket
    • isDisconnect

      public boolean isDisconnect()
      Specified by:
      isDisconnect in interface IZomboidPacket