Class Packet207SetScore

java.lang.Object
net.minecraft.src.Packet
net.minecraft.src.Packet207SetScore

public class Packet207SetScore extends Packet
  • Field Details

    • itemName

      public String itemName
      An unique name to be displayed in the list.
    • scoreName

      public String scoreName
      The unique name for the scoreboard to be updated. Only sent when updateOrRemove does not equal 1.
    • value

      public int value
      The score to be displayed next to the entry. Only sent when Update/Remove does not equal 1.
    • updateOrRemove

      public int updateOrRemove
      0 to create/update an item. 1 to remove an item.
  • Constructor Details

    • Packet207SetScore

      public Packet207SetScore()
    • Packet207SetScore

      public Packet207SetScore(Score par1Score, int par2)
    • Packet207SetScore

      public Packet207SetScore(String par1Str)
  • Method Details

    • readPacketData

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

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

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

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