Class SStatisticsPacket
- java.lang.Object
-
- net.minecraft.network.play.server.SStatisticsPacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SStatisticsPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Constructor Summary
Constructors Constructor Description SStatisticsPacket()
SStatisticsPacket(it.unimi.dsi.fastutil.objects.Object2IntMap<Stat<?>> p_i47942_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private <T> int
getId(Stat<T> p_197683_1_)
java.util.Map<Stat<?>,java.lang.Integer>
getStats()
void
handle(IClientPlayNetHandler p_148833_1_)
void
read(PacketBuffer p_148837_1_)
private <T> void
readStat(StatType<T> p_197684_1_, PacketBuffer p_197684_2_)
void
write(PacketBuffer p_148840_1_)
-
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.IPacket
isSkippable
-
-
-
-
Field Detail
-
stats
private it.unimi.dsi.fastutil.objects.Object2IntMap<Stat<?>> stats
-
-
Constructor Detail
-
SStatisticsPacket
public SStatisticsPacket()
-
SStatisticsPacket
public SStatisticsPacket(it.unimi.dsi.fastutil.objects.Object2IntMap<Stat<?>> p_i47942_1_)
-
-
Method Detail
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
readStat
private <T> void readStat(StatType<T> p_197684_1_, PacketBuffer p_197684_2_)
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
getId
private <T> int getId(Stat<T> p_197683_1_)
-
getStats
public java.util.Map<Stat<?>,java.lang.Integer> getStats()
-
-