Class PlayerSyncPacket

java.lang.Object
net.minecraft.src.Packet
btw.network.packet.PlayerSyncPacket

public class PlayerSyncPacket extends Packet
  • Field Details

    • playerName

      public String playerName
  • Constructor Details

    • PlayerSyncPacket

      public PlayerSyncPacket(String playername)
    • PlayerSyncPacket

      public PlayerSyncPacket()
  • Method Details

    • readPacketData

      public void readPacketData(DataInput inputStream) throws IOException
      Description copied from class: Packet
      Abstract. Reads the raw packet data from the data stream.
      Specified by:
      readPacketData in class Packet
      Throws:
      IOException
    • writePacketData

      public void writePacketData(DataOutput outputStream) throws IOException
      Description copied from class: Packet
      Abstract. Writes the raw packet data to the data stream.
      Specified by:
      writePacketData in class Packet
      Throws:
      IOException
    • processPacket

      public void processPacket(NetHandler netHandler)
      Description copied from class: Packet
      Passes this Packet on to the NetHandler for processing.
      Specified by:
      processPacket in class Packet
    • getPacketSize

      public int getPacketSize()
      Description copied from class: Packet
      Abstract. Return the size of the packet (not counting the header).
      Specified by:
      getPacketSize in class Packet