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 TypeFieldDescriptionprivate final intprivate final ItemStackprivate final intprivate final intstatic final StreamCodec<RegistryFriendlyByteBuf, ClientboundContainerSetSlotPacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundContainerSetSlotPacket(int containerId, int stateId, int slot, ItemStack itemStack) private -
Method Summary
Modifier and TypeMethodDescriptionintgetItem()intgetSlot()intvoidhandle(ClientGamePacketListener listener) type()private voidwrite(RegistryFriendlyByteBuf output) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, ClientboundContainerSetSlotPacket> STREAM_CODEC -
containerId
private final int containerId -
stateId
private final int stateId -
slot
private final int slot -
itemStack
-
-
Constructor Details
-
ClientboundContainerSetSlotPacket
public ClientboundContainerSetSlotPacket(int containerId, int stateId, int slot, ItemStack itemStack) -
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()
-