public NetworkMode ReadPacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction) { var length = stream.ReadVarInt(); Statistics = new Statistic[length]; for (long i = 0; i < length; i++) { Statistics[i] = new Statistic( stream.ReadString(), stream.ReadVarInt()); } return mode; }
public UpdateStatisticsPacket(Statistic[] statistics) { Statistics = statistics; }