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
FieldsModifier and TypeFieldDescriptionstatic final intprivate final intprivate final ItemStackstatic final intprivate final intprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundContainerSetSlotPacket(int p_131982_, int p_182713_, int p_131983_, ItemStack p_131984_) private -
Method Summary
Modifier and TypeMethodDescriptionintgetItem()intgetSlot()intvoidhandle(ClientGamePacketListener p_131990_) type()private voidwrite(RegistryFriendlyByteBuf p_320916_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf,ClientboundContainerSetSlotPacket> STREAM_CODEC -
CARRIED_ITEM
public static final int CARRIED_ITEM- See Also:
-
PLAYER_INVENTORY
public static final int PLAYER_INVENTORY- See Also:
-
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
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getContainerId
public int getContainerId() -
getSlot
public int getSlot() -
getItem
-
getStateId
public int getStateId()
-