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 containerId, int stateId, NonNullList<ItemStack> items, ItemStack carriedItem) private
-
Method Summary
Modifier and TypeMethodDescriptionint
getItems()
int
void
handle
(ClientGamePacketListener handler) Passes this Packet on to the NetHandler for processing.type()
private void
write
(RegistryFriendlyByteBuf buffer) 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 containerId, int stateId, NonNullList<ItemStack> items, ItemStack carriedItem) -
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()
-