public static StatisticsEntryList FromReader(IMinecraftDataReader reader)
        {
            var count = reader.ReadVarInt();

            var value = new StatisticsEntryList();
            for (int i = 0; i < count; i++)
                value[i] = new StatisticsEntry { StatisticsName = reader.ReadString(), Value = reader.ReadVarInt() };
            

            return value;
        }
Beispiel #2
0
        public static StatisticsEntryList FromReader(IMinecraftDataReader reader)
        {
            var count = reader.ReadVarInt();

            var value = new StatisticsEntryList();

            for (int i = 0; i < count; i++)
            {
                value[i] = new StatisticsEntry {
                    StatisticsName = reader.ReadString(), Value = reader.ReadVarInt()
                }
            }
            ;


            return(value);
        }
        public IPacket ReadPacket(IMinecraftDataReader reader)
        {
            StatisticsEntryList = StatisticsEntryList.FromReader(reader);

            return this;
        }