Class ServerboundSelectBundleItemPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.inventory.ServerboundSelectBundleItemPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionServerboundSelectBundleItemPacket(int slotId, int selectedItemIndex) ServerboundSelectBundleItemPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintintinthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ServerboundSelectBundleItemPacketwithSelectedItemIndex(int selectedItemIndex) @NonNull ServerboundSelectBundleItemPacketwithSlotId(int slotId) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isTerminal, shouldRunOnGameThread
-
Constructor Details
-
ServerboundSelectBundleItemPacket
public ServerboundSelectBundleItemPacket(io.netty.buffer.ByteBuf in) -
ServerboundSelectBundleItemPacket
public ServerboundSelectBundleItemPacket(int slotId, int selectedItemIndex)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getSlotId
public int getSlotId() -
getSelectedItemIndex
public int getSelectedItemIndex() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withSlotId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSelectedItemIndex
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-