Class InventoryS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.InventoryS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class InventoryS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Represents the contents of a block or entity inventory being synchronized from the server to the client.
Mappings:
Namespace Name
named net/minecraft/network/packet/s2c/play/InventoryS2CPacket
intermediary net/minecraft/class_2649
official adm
  • Field Details

    • CODEC

      public static final PacketCodec<RegistryByteBuf,InventoryS2CPacket> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_47916 Lnet/minecraft/class_2649;field_47916:Lnet/minecraft/class_9139;
      official a Ladm;a:Lzt;
    • syncId

      private final int syncId
      The ScreenHandler.syncId of a screen handler.
      Mappings:
      Namespace Name Mixin selector
      named syncId Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;syncId:I
      intermediary field_12146 Lnet/minecraft/class_2649;field_12146:I
      official b Ladm;b:I
    • revision

      private final int revision
      Mappings:
      Namespace Name Mixin selector
      named revision Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;revision:I
      intermediary field_34034 Lnet/minecraft/class_2649;field_34034:I
      official c Ladm;c:I
    • contents

      private final List<ItemStack> contents
      Mappings:
      Namespace Name Mixin selector
      named contents Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;contents:Ljava/util/List;
      intermediary field_12147 Lnet/minecraft/class_2649;field_12147:Ljava/util/List;
      official d Ladm;d:Ljava/util/List;
    • cursorStack

      private final ItemStack cursorStack
      Mappings:
      Namespace Name Mixin selector
      named cursorStack Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;cursorStack:Lnet/minecraft/item/ItemStack;
      intermediary field_34035 Lnet/minecraft/class_2649;field_34035:Lnet/minecraft/class_1799;
      official e Ladm;e:Lcxo;
  • Constructor Details

    • InventoryS2CPacket

      public InventoryS2CPacket(int syncId, int revision, DefaultedList<ItemStack> contents, ItemStack cursorStack)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;<init>(IILnet/minecraft/util/collection/DefaultedList;Lnet/minecraft/item/ItemStack;)V
      intermediary <init> Lnet/minecraft/class_2649;<init>(IILnet/minecraft/class_2371;Lnet/minecraft/class_1799;)V
      official <init> Ladm;<init>(IILjz;Lcxo;)V
    • InventoryS2CPacket

      private InventoryS2CPacket(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;<init>(Lnet/minecraft/network/RegistryByteBuf;)V
      intermediary <init> Lnet/minecraft/class_2649;<init>(Lnet/minecraft/class_9129;)V
      official <init> Ladm;<init>(Lxg;)V
  • Method Details

    • write

      private void write(RegistryByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;write(Lnet/minecraft/network/RegistryByteBuf;)V
      intermediary method_55869 Lnet/minecraft/class_2649;method_55869(Lnet/minecraft/class_9129;)V
      official a Ladm;a(Lxg;)V
    • getPacketId

      public PacketType<InventoryS2CPacket> getPacketId()
      Specified by:
      getPacketId in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named getPacketId Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
      intermediary method_55846 Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
      official a Laac;a()Laae;
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
      intermediary method_11439 Lnet/minecraft/class_2649;method_11439(Lnet/minecraft/class_2602;)V
      official a Ladm;a(Lacr;)V
    • getSyncId

      public int getSyncId()
      Mappings:
      Namespace Name Mixin selector
      named getSyncId Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;getSyncId()I
      intermediary method_11440 Lnet/minecraft/class_2649;method_11440()I
      official b Ladm;b()I
    • getContents

      public List<ItemStack> getContents()
      Mappings:
      Namespace Name Mixin selector
      named getContents Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;getContents()Ljava/util/List;
      intermediary method_11441 Lnet/minecraft/class_2649;method_11441()Ljava/util/List;
      official e Ladm;e()Ljava/util/List;
    • getCursorStack

      public ItemStack getCursorStack()
      Mappings:
      Namespace Name Mixin selector
      named getCursorStack Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;getCursorStack()Lnet/minecraft/item/ItemStack;
      intermediary method_37437 Lnet/minecraft/class_2649;method_37437()Lnet/minecraft/class_1799;
      official f Ladm;f()Lcxo;
    • getRevision

      public int getRevision()
      Mappings:
      Namespace Name Mixin selector
      named getRevision Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;getRevision()I
      intermediary method_37438 Lnet/minecraft/class_2649;method_37438()I
      official g Ladm;g()I