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
-
Constructor Summary
ModifierConstructorDescriptionClientboundContainerSetContentPacket
(int p_182704_, int p_182705_, NonNullList<ItemStack> p_182706_, ItemStack p_182707_) private
-
Method Summary
Modifier and TypeMethodDescriptionint
getItems()
int
void
handle
(ClientGamePacketListener p_131953_) type()
private void
write
(RegistryFriendlyByteBuf p_330970_) 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 p_182704_, int p_182705_, NonNullList<ItemStack> p_182706_, ItemStack p_182707_) -
ClientboundContainerSetContentPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getContainerId
public int getContainerId() -
getItems
-
getCarriedItem
-
getStateId
public int getStateId()
-