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 TypeMethodDescriptionint
getItems()
int
void
handle
(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.type()
private void
write
(RegistryFriendlyByteBuf p_320758_) 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,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:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getContainerId
public int getContainerId() -
getItems
-
getCarriedItem
-
getStateId
public int getStateId()
-