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 uw
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 Luw;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> Luw;<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> Luw;<init>(Lsf;)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

    • getOrCreateStat

      private static <T> Stat<T> getOrCreateStat(PacketByteBuf buf, StatType<T> statType)
      Mappings:
      Namespace Name Mixin selector
      official a Luw;a(Lsf;Lamq;)Lamo;
      intermediary method_42066 Lnet/minecraft/class_2617;method_42066(Lnet/minecraft/class_2540;Lnet/minecraft/class_3448;)Lnet/minecraft/class_3445;
      named getOrCreateStat Lnet/minecraft/network/packet/s2c/play/StatisticsS2CPacket;getOrCreateStat(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/stat/StatType;)Lnet/minecraft/stat/Stat;
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Luw;a(Lur;)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 Luo;a(Lsf;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • write

      private static <T> void write(PacketByteBuf buf, Stat<T> stat)
      Mappings:
      Namespace Name Mixin selector
      official a Luw;a(Lsf;Lamo;)V
      intermediary method_34087 Lnet/minecraft/class_2617;method_34087(Lnet/minecraft/class_2540;Lnet/minecraft/class_3445;)V
      named write Lnet/minecraft/network/packet/s2c/play/StatisticsS2CPacket;write(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/stat/Stat;)V
    • getStatMap

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