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 official ach
intermediary net/minecraft/class_2649
named net/minecraft/network/packet/s2c/play/InventoryS2CPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PacketCodec
<RegistryByteBuf, InventoryS2CPacket> private final ItemStack
private final int
private final int
TheScreenHandler.syncId
of a screen handler. -
Constructor Summary
ConstructorsModifierConstructorDescriptionInventoryS2CPacket
(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 official a
Lach;a:Lys;
intermediary field_47916
Lnet/minecraft/class_2649;field_47916:Lnet/minecraft/class_9139;
named CODEC
Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
syncId
private final int syncIdTheScreenHandler.syncId
of a screen handler.- Mappings:
Namespace Name Mixin selector official b
Lach;b: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 c
Lach;c:I
intermediary field_34034
Lnet/minecraft/class_2649;field_34034:I
named revision
Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;revision:I
-
contents
- Mappings:
Namespace Name Mixin selector official d
Lach;d: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
- Mappings:
Namespace Name Mixin selector official e
Lach;e:Lcsz;
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>
Lach;<init>(IILjf;Lcsz;)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
- Mappings:
Namespace Name Mixin selector official <init>
Lach;<init>(Lwf;)V
intermediary <init>
Lnet/minecraft/class_2649;<init>(Lnet/minecraft/class_9129;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;<init>(Lnet/minecraft/network/RegistryByteBuf;)V
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector official a
Lach;a(Lwf;)V
intermediary method_55869
Lnet/minecraft/class_2649;method_55869(Lnet/minecraft/class_9129;)V
named write
Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;write(Lnet/minecraft/network/RegistryByteBuf;)V
-
getPacketId
- Specified by:
getPacketId
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lzb;a()Lzd;
intermediary method_55846
Lnet/minecraft/class_2596;method_55846()Lnet/minecraft/class_9145;
named getPacketId
Lnet/minecraft/network/packet/Packet;getPacketId()Lnet/minecraft/network/packet/PacketType;
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lach;a(Labm;)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
Lach;b()I
intermediary method_11440
Lnet/minecraft/class_2649;method_11440()I
named getSyncId
Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;getSyncId()I
-
getContents
- Mappings:
Namespace Name Mixin selector official e
Lach;e()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
- Mappings:
Namespace Name Mixin selector official f
Lach;f()Lcsz;
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 g
Lach;g()I
intermediary method_37438
Lnet/minecraft/class_2649;method_37438()I
named getRevision
Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;getRevision()I
-