Class ClientboundContainerSetContentPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundContainerSetContentPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundContainerSetContentPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundContainerSetContentPacket(int pContainerId, int pStateId, NonNullList<ItemStack> pItems, ItemStack pCarriedItem) private -
Method Summary
Modifier and TypeMethodDescriptionintgetItems()intvoidhandle(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()private voidwrite(RegistryFriendlyByteBuf pBuffer) 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,ClientboundContainerSetContentPacket> STREAM_CODEC -
containerId
private final int containerId -
stateId
private final int stateId -
items
-
carriedItem
-
-
Constructor Details
-
ClientboundContainerSetContentPacket
public ClientboundContainerSetContentPacket(int pContainerId, int pStateId, NonNullList<ItemStack> pItems, ItemStack pCarriedItem) -
ClientboundContainerSetContentPacket
-
-
Method Details
-
write
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getContainerId
public int getContainerId() -
getItems
-
getCarriedItem
-
getStateId
public int getStateId()
-