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
official rj
intermediary net/minecraft/class_2649
named net/minecraft/network/packet/s2c/play/InventoryS2CPacket
  • Field Details

    • syncId

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

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

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

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

    • InventoryS2CPacket

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

      public InventoryS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrj;<init>(Lph;)V
      intermediary <init> Lnet/minecraft/class_2649;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

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

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

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

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

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

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