C0EPacketClickWindow
new C0EPacketClickWindow(int windowId, int slotId, int button, int mode, ItemStack itemStack, short transactionId)
new C0EPacketClickWindow(int windowId, int slotId, int button, int mode, ItemStack itemStack, short transactionId)Constructs a new C0EPacketClickWindow object with specified parameters for window interaction. windowId is the ID of the window, slotId is the ID of the slot being interacted with, button indicates the mouse button used, mode represents the interaction mode, itemStack is the item stack involved in the interaction, and transactionId is a short value representing the transaction ID.
getWindowId(): int
getWindowId(): intReturns the window ID associated with this packet. The window ID is an integer value identifying the window in which the click occurred.
setWindowId(int windowId): void
setWindowId(int windowId): voidSets the window ID for this packet. The window ID is an integer value identifying the window in which the click occurred.
getSlotId(): int
getSlotId(): intRetrieves the slot ID where the click occurred. The slot ID is an integer value representing the specific slot within the window.
setSlotId(int slotId): void
setSlotId(int slotId): voidSets the slot ID where the click occurred. The slot ID is an integer value representing the specific slot within the window.
getButton(): int
getButton(): intReturns the button used for the click. This is an integer value representing the mouse button (e.g., left, right) used in the interaction.
setButton(int button): void
setButton(int button): voidSets the button used for the click. This should be an integer value representing the mouse button (e.g., left, right) used in the interaction.
getMode(): int
getMode(): intProvides the mode of the click. This is an integer value indicating the interaction mode (e.g., quick move, drag, etc.).
setMode(int mode): void
setMode(int mode): voidSets the mode of the click. This is an integer value indicating the interaction mode (e.g., quick move, drag, etc.).
getItemStack(): ItemStack
getItemStack(): ItemStackReturns the ItemStack object associated with the click. This represents the item stack that was clicked in the window.
Sets the ItemStack object associated with the click.
Last updated