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 SummaryFieldsModifier and TypeFieldDescriptionstatic final intprivate final intprivate final ItemStackstatic final intprivate final intprivate final int
- 
Constructor SummaryConstructorsConstructorDescriptionClientboundContainerSetSlotPacket(int p_131982_, int p_182713_, int p_131983_, ItemStack p_131984_) ClientboundContainerSetSlotPacket(FriendlyByteBuf p_178829_) 
- 
Method SummaryModifier and TypeMethodDescriptionintgetItem()intgetSlot()intvoidhandle(ClientGamePacketListener p_131990_) voidwrite(FriendlyByteBuf p_131993_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.PacketisSkippable, nextProtocol
- 
Field Details- 
CARRIED_ITEMpublic static final int CARRIED_ITEM- See Also:
 
- 
PLAYER_INVENTORYpublic static final int PLAYER_INVENTORY- See Also:
 
- 
containerIdprivate final int containerId
- 
stateIdprivate final int stateId
- 
slotprivate final int slot
- 
itemStack
 
- 
- 
Constructor Details- 
ClientboundContainerSetSlotPacketpublic ClientboundContainerSetSlotPacket(int p_131982_, int p_182713_, int p_131983_, ItemStack p_131984_) 
- 
ClientboundContainerSetSlotPacket
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- Packet<ClientGamePacketListener>
 
- 
handle- Specified by:
- handlein interface- Packet<ClientGamePacketListener>
 
- 
getContainerIdpublic int getContainerId()
- 
getSlotpublic int getSlot()
- 
getItem
- 
getStateIdpublic int getStateId()
 
-