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>
Mappings:
Namespace Name
official pl
intermediary net/minecraft/class_2617
named net/minecraft/network/packet/s2c/play/StatisticsS2CPacket
  • Field Details

    • stats

      private Object2IntMap<Stat<?>> stats
      Mappings:
      Namespace Name Mixin selector
      official a Lpl;a:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      intermediary field_12030 Lnet/minecraft/class_2617;field_12030:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
      named stats Lnet/minecraft/network/packet/s2c/play/StatisticsS2CPacket;stats:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
  • Constructor Details

    • StatisticsS2CPacket

      public StatisticsS2CPacket()
    • StatisticsS2CPacket

      public StatisticsS2CPacket​(Object2IntMap<Stat<?>> stats)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lpl;<init>(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)V
      intermediary <init> Lnet/minecraft/class_2617;<init>(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/StatisticsS2CPacket;<init>(Lit/unimi/dsi/fastutil/objects/Object2IntMap;)V
  • Method Details

    • apply

      public void apply​(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lpl;a(Lpd;)V
      intermediary method_11270 Lnet/minecraft/class_2617;method_11270(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/StatisticsS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lpa;a(Lnw;)V
      intermediary method_11053 Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
    • readStat

      private <T> void readStat​(StatType<T> type, PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lpl;a(Laep;Lnw;)V
      intermediary method_11271 Lnet/minecraft/class_2617;method_11271(Lnet/minecraft/class_3448;Lnet/minecraft/class_2540;)V
      named readStat Lnet/minecraft/network/packet/s2c/play/StatisticsS2CPacket;readStat(Lnet/minecraft/stat/StatType;Lnet/minecraft/network/PacketByteBuf;)V
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lpa;b(Lnw;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • getStatId

      private <T> int getStatId​(Stat<T> stat)
      Mappings:
      Namespace Name Mixin selector
      official a Lpl;a(Laen;)I
      intermediary method_11272 Lnet/minecraft/class_2617;method_11272(Lnet/minecraft/class_3445;)I
      named getStatId Lnet/minecraft/network/packet/s2c/play/StatisticsS2CPacket;getStatId(Lnet/minecraft/stat/Stat;)I
    • getStatMap

      @Environment(CLIENT) public Map<Stat<?>,​Integer> getStatMap()
      Mappings:
      Namespace Name Mixin selector
      official b Lpl;b()Ljava/util/Map;
      intermediary method_11273 Lnet/minecraft/class_2617;method_11273()Ljava/util/Map;
      named getStatMap Lnet/minecraft/network/packet/s2c/play/StatisticsS2CPacket;getStatMap()Ljava/util/Map;