public class StatisticsS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private it.unimi.dsi.fastutil.objects.Object2IntMap<Stat<?>> |
stats |
| Constructor and Description |
|---|
StatisticsS2CPacket() |
StatisticsS2CPacket(it.unimi.dsi.fastutil.objects.Object2IntMap<Stat<?>> stats) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
private <T> int |
getStatId(Stat<T> stat) |
Map<Stat<?>,Integer> |
getStatMap() |
void |
read(PacketByteBuf buf) |
private <T> void |
readStat(StatType<T> type,
PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWritingErrorSkippableprivate it.unimi.dsi.fastutil.objects.Object2IntMap<Stat<?>> stats
public StatisticsS2CPacket()
public StatisticsS2CPacket(it.unimi.dsi.fastutil.objects.Object2IntMap<Stat<?>> stats)
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply in interface Packet<ClientPlayPacketListener>public void read(PacketByteBuf buf) throws IOException
read in interface Packet<ClientPlayPacketListener>IOExceptionprivate <T> void readStat(StatType<T> type, PacketByteBuf buf)
public void write(PacketByteBuf buf) throws IOException
write in interface Packet<ClientPlayPacketListener>IOExceptionprivate <T> int getStatId(Stat<T> stat)