Class ClickWindowC2SPacket
java.lang.Object
net.minecraft.network.packet.c2s.play.ClickWindowC2SPacket
- All Implemented Interfaces:
Packet<ServerPlayPacketListener>
public class ClickWindowC2SPacket extends Object implements Packet<ServerPlayPacketListener>
- Mappings:
Namespace Name official ikintermediary net/minecraft/class_1558named net/minecraft/network/packet/c2s/play/ClickWindowC2SPacket
-
Field Summary
Fields Modifier and Type Field Description private intactionTypeprivate intbuttonprivate ItemStackselectedStackprivate intslotprivate intsyncIdprivate shorttransactionId -
Constructor Summary
Constructors Constructor Description ClickWindowC2SPacket()ClickWindowC2SPacket(int syncId, int slot, int button, int actionType, ItemStack selectedSlot, short transactionId) -
Method Summary
Modifier and Type Method Description voidapply(ServerPlayPacketListener serverPlayPacketListener)intgetActionType()intgetButton()ItemStackgetSelectedStack()intgetSlot()intgetSyncId()shortgetTransactionId()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
Field Details
-
syncId
private int syncId- Mappings:
Namespace Name Mixin selector official aLik;a:Iintermediary field_6396Lnet/minecraft/class_1558;field_6396:Inamed syncIdLnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;syncId:I
-
slot
private int slot- Mappings:
Namespace Name Mixin selector official bLik;b:Iintermediary field_6397Lnet/minecraft/class_1558;field_6397:Inamed slotLnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;slot:I
-
button
private int button- Mappings:
Namespace Name Mixin selector official cLik;c:Iintermediary field_6398Lnet/minecraft/class_1558;field_6398:Inamed buttonLnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;button:I
-
transactionId
private short transactionId- Mappings:
Namespace Name Mixin selector official dLik;d:Sintermediary field_6399Lnet/minecraft/class_1558;field_6399:Snamed transactionIdLnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;transactionId:S
-
selectedStack
- Mappings:
Namespace Name Mixin selector official eLik;e:Lzx;intermediary field_6400Lnet/minecraft/class_1558;field_6400:Lnet/minecraft/class_2056;named selectedStackLnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;selectedStack:Lnet/minecraft/item/ItemStack;
-
actionType
private int actionType- Mappings:
Namespace Name Mixin selector official fLik;f:Iintermediary field_6401Lnet/minecraft/class_1558;field_6401:Inamed actionTypeLnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;actionType:I
-
-
Constructor Details
-
ClickWindowC2SPacket
public ClickWindowC2SPacket() -
ClickWindowC2SPacket
@Environment(CLIENT) public ClickWindowC2SPacket(int syncId, int slot, int button, int actionType, ItemStack selectedSlot, short transactionId)- Mappings:
Namespace Name Mixin selector official <init>Lik;<init>(IIIILzx;S)Vintermediary <init>Lnet/minecraft/class_1558;<init>(IIIILnet/minecraft/class_2056;S)Vnamed <init>Lnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;<init>(IIIILnet/minecraft/item/ItemStack;S)V
-
-
Method Details
-
apply
- Specified by:
applyin interfacePacket<ServerPlayPacketListener>- Mappings:
Namespace Name Mixin selector official aLik;a(Lic;)Vintermediary method_5754Lnet/minecraft/class_1558;method_5754(Lnet/minecraft/class_1550;)Vnamed applyLnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
-
read
- Specified by:
readin interfacePacket<ServerPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLff;a(Lem;)Vintermediary method_5238Lnet/minecraft/class_1457;method_5238(Lnet/minecraft/class_1435;)Vnamed readLnet/minecraft/network/Packet;read(Lnet/minecraft/util/PacketByteBuf;)V
-
write
- Specified by:
writein interfacePacket<ServerPlayPacketListener>- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLff;b(Lem;)Vintermediary method_5240Lnet/minecraft/class_1457;method_5240(Lnet/minecraft/class_1435;)Vnamed writeLnet/minecraft/network/Packet;write(Lnet/minecraft/util/PacketByteBuf;)V
-
getSyncId
public int getSyncId()- Mappings:
Namespace Name Mixin selector official aLik;a()Iintermediary method_5753Lnet/minecraft/class_1558;method_5753()Inamed getSyncIdLnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;getSyncId()I
-
getSlot
public int getSlot()- Mappings:
Namespace Name Mixin selector official bLik;b()Iintermediary method_5755Lnet/minecraft/class_1558;method_5755()Inamed getSlotLnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;getSlot()I
-
getButton
public int getButton()- Mappings:
Namespace Name Mixin selector official cLik;c()Iintermediary method_5756Lnet/minecraft/class_1558;method_5756()Inamed getButtonLnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;getButton()I
-
getTransactionId
public short getTransactionId()- Mappings:
Namespace Name Mixin selector official dLik;d()Sintermediary method_5757Lnet/minecraft/class_1558;method_5757()Snamed getTransactionIdLnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;getTransactionId()S
-
getSelectedStack
- Mappings:
Namespace Name Mixin selector official eLik;e()Lzx;intermediary method_5758Lnet/minecraft/class_1558;method_5758()Lnet/minecraft/class_2056;named getSelectedStackLnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;getSelectedStack()Lnet/minecraft/item/ItemStack;
-
getActionType
public int getActionType()- Mappings:
Namespace Name Mixin selector official fLik;f()Iintermediary method_5759Lnet/minecraft/class_1558;method_5759()Inamed getActionTypeLnet/minecraft/network/packet/c2s/play/ClickWindowC2SPacket;getActionType()I
-