Class StatisticsS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.StatisticsS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class StatisticsS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private Object2IntMap<Stat<?>>
stats
-
Constructor Summary
Constructors Constructor Description StatisticsS2CPacket()
StatisticsS2CPacket(Object2IntMap<Stat<?>> stats)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
stats
-
-
Constructor Details
-
StatisticsS2CPacket
public StatisticsS2CPacket() -
StatisticsS2CPacket
-
-
Method Details
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
readStat
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
getStatId
-
getStatMap
-