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 rp
intermediary net/minecraft/class_2649
named net/minecraft/network/packet/s2c/play/InventoryS2CPacket
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ItemStack
private final int
private final int
TheScreenHandler.syncId
of a screen handler. -
Constructor Summary
ConstructorDescriptionInventoryS2CPacket
(int syncId, int revision, DefaultedList<ItemStack> contents, ItemStack cursorStack) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ClientPlayPacketListener clientPlayPacketListener) int
int
void
write
(PacketByteBuf 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
isWritingErrorSkippable
-
Field Details
-
syncId
private final int syncIdTheScreenHandler.syncId
of a screen handler.- Mappings:
Namespace Name Mixin selector official a
Lrp;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
Lrp;b: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 c
Lrp;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
- Mappings:
Namespace Name Mixin selector official d
Lrp;d:Lbue;
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>
Lrp;<init>(IILgt;Lbue;)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>
Lrp;<init>(Lpn;)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
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lqr;a(Lpn;)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
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lrp;a(Lqu;)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
Lrp;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 c
Lrp;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
- Mappings:
Namespace Name Mixin selector official d
Lrp;d()Lbue;
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
Lrp;e()I
intermediary method_37438
Lnet/minecraft/class_2649;method_37438()I
named getRevision
Lnet/minecraft/network/packet/s2c/play/InventoryS2CPacket;getRevision()I
-