Class InventoryS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.InventoryS2CPacket
- All Implemented Interfaces:
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 aco
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PacketCodec
<RegistryByteBuf, InventoryS2CPacket> private final ItemStack
private final int
private final int
TheScreenHandler.syncId
of a screen handler. -
Constructor Summary
ModifierConstructorDescriptionInventoryS2CPacket
(int syncId, int revision, DefaultedList<ItemStack> contents, ItemStack cursorStack) private
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) int
int
private void
write
(RegistryByteBuf buf) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.packet.Packet
isWritingErrorSkippable, transitionsNetworkState
-
Field Details
-
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
Laco;a:Lyw;
-
syncId
private final int syncIdTheScreenHandler.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
Laco;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
Laco;c:I
-
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
Laco;d:Ljava/util/List;
-
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
Laco;e:Lcuo;
-
-
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>
Laco;<init>(IILjv;Lcuo;)V
-
InventoryS2CPacket
- 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>
Laco;<init>(Lwj;)V
-
-
Method Details
-
write
- 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
Laco;a(Lwj;)V
-
getPacketId
- Specified by:
getPacketId
in interfacePacket<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
Lzf;a()Lzh;
-
apply
- Specified by:
apply
in interfacePacket<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
Laco;a(Labt;)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
Laco;b()I
-
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
Laco;e()Ljava/util/List;
-
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
Laco;f()Lcuo;
-
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
Laco;g()I
-