Class ScreenHandlerSlotUpdateS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.ScreenHandlerSlotUpdateS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class ScreenHandlerSlotUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ScreenHandlerSlotUpdateS2CPacket()
ScreenHandlerSlotUpdateS2CPacket(int syncId, int slot, ItemStack stack)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
ItemStack
getItemStack()
int
getSlot()
int
getSyncId()
void
read(PacketByteBuf buf)
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 int syncId -
slot
private int slot -
stack
-
-
Constructor Details
-
ScreenHandlerSlotUpdateS2CPacket
public ScreenHandlerSlotUpdateS2CPacket() -
ScreenHandlerSlotUpdateS2CPacket
-
-
Method Details
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
getSyncId
@Environment(CLIENT) public int getSyncId() -
getSlot
@Environment(CLIENT) public int getSlot() -
getItemStack
-