Class ServerboundSetCreativeModeSlotPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundSetCreativeModeSlotPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
public class ServerboundSetCreativeModeSlotPacket
extends Object
implements Packet<ServerGamePacketListener>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServerboundSetCreativeModeSlotPacket(int p_134553_, ItemStack p_134554_)ServerboundSetCreativeModeSlotPacket(FriendlyByteBuf p_179760_) -
Method Summary
Modifier and TypeMethodDescriptiongetItem()intvoidhandle(ServerGamePacketListener p_134560_)voidwrite(FriendlyByteBuf p_134563_)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
slotNum
private final int slotNum -
itemStack
-
-
Constructor Details
-
ServerboundSetCreativeModeSlotPacket
-
ServerboundSetCreativeModeSlotPacket
-
-
Method Details
-
handle
- Specified by:
handlein interfacePacket<ServerGamePacketListener>
-
write
- Specified by:
writein interfacePacket<ServerGamePacketListener>
-
getSlotNum
public int getSlotNum() -
getItem
-