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 pv
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 Lpv;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> Lpv;<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> Lpv;<init>(Log;)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 Lpv;a(Lafn;I)Lafl;
      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 Lpv;a(Lpn;)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 Lpk;a(Log;)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 Lpv;a(Lafl;)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 Lpv;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;