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 int
private final ItemStack
private final int
private final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundContainerSetSlotPacket
(int pContainerId, int pStateId, int pSlot, ItemStack pItemStack) private
-
Method Summary
Modifier and TypeMethodDescriptionint
getItem()
int
getSlot()
int
void
handle
(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()
private void
write
(RegistryFriendlyByteBuf pBuffer) 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, 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 pContainerId, int pStateId, int pSlot, ItemStack pItemStack) -
ClientboundContainerSetSlotPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getContainerId
public int getContainerId() -
getSlot
public int getSlot() -
getItem
-
getStateId
public int getStateId()
-