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 rc
intermediary net/minecraft/class_2617
named net/minecraft/network/packet/s2c/play/StatisticsS2CPacket
  • Field Details

    • stats

      private final Object2IntMap<Stat<?>> stats
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;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(Object2IntMap<Stat<?>> stats)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrc;<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
    • StatisticsS2CPacket

      public StatisticsS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrc;<init>(Lpn;)V
      intermediary <init> Lnet/minecraft/class_2617;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/StatisticsS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • getStat

      private static <T> Stat<T> getStat(StatType<T> statType, int id)
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(Lahe;I)Lahc;
      intermediary method_34086 Lnet/minecraft/class_2617;method_34086(Lnet/minecraft/class_3448;I)Lnet/minecraft/class_3445;
      named getStat Lnet/minecraft/network/packet/s2c/play/StatisticsS2CPacket;getStat(Lnet/minecraft/stat/StatType;I)Lnet/minecraft/stat/Stat;
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(Lqu;)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
    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lqr;a(Lpn;)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
    • getStatNetworkId

      private <T> int getStatNetworkId(Stat<T> stat)
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(Lahc;)I
      intermediary method_34085 Lnet/minecraft/class_2617;method_34085(Lnet/minecraft/class_3445;)I
      named getStatNetworkId Lnet/minecraft/network/packet/s2c/play/StatisticsS2CPacket;getStatNetworkId(Lnet/minecraft/stat/Stat;)I
    • getStatMap

      public Map<Stat<?>,Integer> getStatMap()
      Mappings:
      Namespace Name Mixin selector
      official b Lrc;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;