📃
Scripting
  • Introduction
  • Creating a script
  • Dummy API
  • Namespaces
    • breeze
    • mc
    • inventory
    • mathUtil
    • playerController
    • UIRenderer
    • world
    • render3D
    • gameSettings
  • Objects
    • Breeze
      • Settings
        • BooleanSetting
        • IntSetting
        • DoubleSetting
        • ModeSetting
        • ColorSetting
        • MinMaxSetting
        • StringSetting
        • KeyBindSetting
        • PositionSetting
      • Animation
      • Module
        • HudModule
        • RotationModule
    • Minecraft
      • Packets
        • ClientPacket
          • C00PacketKeepAlive
          • C01PacketChatMessage
          • C02PacketUseEntity
          • C03PacketPlayer
            • C04PacketPlayerPosition
            • C05PacketPlayerLook
            • C06PacketPlayerPosLook
          • C07PacketPlayerDigging
          • C08PacketBlockPlacement
          • C09PacketHeldItemChange
          • C0APacketAnimation
          • C0BPacketEntityAction
          • C0CPacketInput
          • C0DPacketCloseWindow
          • C0EPacketClickWindow
          • C0FPacketConfirmTransaction
          • C17PacketCustomPayload
        • ServerPacket
          • S00PacketKeepAlive
          • S01PacketJoinGame
          • S02PacketChat
          • S03PacketTimeUpdate
          • S04PacketEntityEquipment
          • S05PacketSpawnPosition
          • S06PacketUpdateHealth
          • S07PacketRespawn
          • S08PacketPlayerPosLook
          • S09PacketHeldItemChange
          • S0CPacketSpawnPlayer
          • S0DPacketCollectItem
          • S0EPacketSpawnObject
          • S0FPacketSpawnMob
          • S12PacketEntityVelocity
          • S13PacketDestroyEntities
          • S14PacketEntity
            • S15PacketEntityRelMove
            • S16PacketEntityLook
            • S17PacketEntityLookMove
          • S18PacketEntityTeleport
          • S19PacketEntityHeadLook
          • S19PacketEntityStatus
          • S27PacketExplosion
          • S2APacketParticles
          • S2CPacketSpawnGlobalEntity
          • S2DPacketOpenWindow
          • S2EPacketCloseWindow
          • S2FPacketSetSlot
          • S3FPacketCustomPayload
      • Util
        • Vec3
        • AxisAlingenedBB
        • RaytraceResult
        • ItemStack
        • BlockPos
      • Entity
        • LivingEntity
          • EntityPlayerSP
    • Util
      • Timer
      • KeyBind
      • Color
      • Rotation
  • Events
    • Packet send event
    • Packet receive event
    • Pre motion event
    • Motion event
    • Post motion event
    • Input event
    • Render2D event
    • Render3D event
    • Tick event
    • Render Entity event
    • World change event
    • Join server event
  • Examples
    • AntiAim
    • CPS Counter
    • Chat Spammer
    • Blink
    • Auto Sprint
  • EnumFacing
Powered by GitBook
On this page
  • new C0EPacketClickWindow(int windowId, int slotId, int button, int mode, ItemStack itemStack, short transactionId)
  • getWindowId(): int
  • setWindowId(int windowId): void
  • getSlotId(): int
  • setSlotId(int slotId): void
  • getButton(): int
  • setButton(int button): void
  • getMode(): int
  • setMode(int mode): void
  • getItemStack(): ItemStack
  • setItemStack(ItemStack stack): void
  1. Objects
  2. Minecraft
  3. Packets
  4. ClientPacket

C0EPacketClickWindow

Last updated 9 months ago

new C0EPacketClickWindow(int windowId, int slotId, int button, int mode, 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

Returns 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

Sets the window ID for this packet. The window ID is an integer value identifying the window in which the click occurred.

getSlotId(): int

Retrieves 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

Sets the slot ID where the click occurred. The slot ID is an integer value representing the specific slot within the window.

getButton(): int

Returns 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

Sets 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

Provides the mode of the click. This is an integer value indicating the interaction mode (e.g., quick move, drag, etc.).

setMode(int mode): void

Sets the mode of the click. This is an integer value indicating the interaction mode (e.g., quick move, drag, etc.).

getItemStack():

Returns the object associated with the click. This represents the item stack that was clicked in the window.

setItemStack( stack): void

Sets the object associated with the click.

ItemStack
ItemStack
ItemStack
ItemStack
ItemStack