类 ClientboundContainerSetSlotPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundContainerSetSlotPacket
- 所有已实现的接口:
Packet<ClientGamePacketListener>
public class ClientboundContainerSetSlotPacket
extends Object
implements Packet<ClientGamePacketListener>
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明ClientboundContainerSetSlotPacket
(int p_131982_, int p_182713_, int p_131983_, ItemStack p_131984_) private
-
方法概要
修饰符和类型方法说明int
getItem()
int
getSlot()
int
void
handle
(ClientGamePacketListener p_131990_) type()
private void
write
(RegistryFriendlyByteBuf p_330631_) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
字段详细资料
-
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf,ClientboundContainerSetSlotPacket> STREAM_CODEC -
containerId
private final int containerId -
stateId
private final int stateId -
slot
private final int slot -
itemStack
-
-
构造器详细资料
-
ClientboundContainerSetSlotPacket
public ClientboundContainerSetSlotPacket(int p_131982_, int p_182713_, int p_131983_, ItemStack p_131984_) -
ClientboundContainerSetSlotPacket
-
-
方法详细资料
-
write
-
type
- 指定者:
type
在接口中Packet<ClientGamePacketListener>
-
handle
- 指定者:
handle
在接口中Packet<ClientGamePacketListener>
-
getContainerId
public int getContainerId() -
getSlot
public int getSlot() -
getItem
-
getStateId
public int getStateId()
-