Class ClientboundContainerSetSlotPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundContainerSetSlotPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundContainerSetSlotPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
private int
private ItemStack
static int
private int
private int
-
Constructor Summary
ConstructorDescriptionClientboundContainerSetSlotPacket(int p_131982_, int p_182713_, int p_131983_, ItemStack p_131984_)
ClientboundContainerSetSlotPacket(FriendlyByteBuf p_178829_)
-
Method Summary
Modifier and TypeMethodDescriptionint
getItem()
int
getSlot()
int
void
handle(ClientGamePacketListener p_131990_)
void
write(FriendlyByteBuf p_131993_)
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.protocol.Packet
isSkippable
-
Field Details
-
CARRIED_ITEM
public static final int CARRIED_ITEM- See Also:
- Constant Field Values
-
PLAYER_INVENTORY
public static final int PLAYER_INVENTORY- See Also:
- Constant Field Values
-
containerId
private final int containerId -
stateId
private final int stateId -
slot
private final int slot -
itemStack
-
-
Constructor Details
-
ClientboundContainerSetSlotPacket
public ClientboundContainerSetSlotPacket(int p_131982_, int p_182713_, int p_131983_, ItemStack p_131984_) -
ClientboundContainerSetSlotPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getContainerId
public int getContainerId() -
getSlot
public int getSlot() -
getItem
-
getStateId
public int getStateId()
-