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 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; }