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
ConstructorDescriptionClientboundContainerSetContentPacket
(int p_182704_, int p_182705_, NonNullList<ItemStack> p_182706_, ItemStack p_182707_) -
Method Summary
Modifier and TypeMethodDescriptionint
getItems()
int
void
handle
(ClientGamePacketListener p_131953_) void
write
(FriendlyByteBuf p_131956_) 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
-
Field Details
-
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
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getContainerId
public int getContainerId() -
getItems
-
getCarriedItem
-
getStateId
public int getStateId()
-