Package net.eternalclient.api.packets
Class MousePackets
- java.lang.Object
-
- net.eternalclient.api.packets.MousePackets
-
public class MousePackets extends java.lang.ObjectUtility class for creating and queuing mouse packets.
-
-
Constructor Summary
Constructors Constructor Description MousePackets()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RSPacketBufferNodecreateClickPacket(int mouseInfo, int x, int y)Creates a packet for a mouse click event.static voidqueueClickPacket()Queues a click packet with default coordinates (0, 0).static voidqueueClickPacket(int x, int y)Queues a click packet with the given coordinates.static voidqueueClickPacket(int mouseInfo, int x, int y)Queues a click packet with the specified mouse information, x and y coordinates.
-
-
-
Method Detail
-
queueClickPacket
public static void queueClickPacket()
Queues a click packet with default coordinates (0, 0).
-
queueClickPacket
public static void queueClickPacket(int x, int y)Queues a click packet with the given coordinates.- Parameters:
x- the X coordinate of the clicky- the Y coordinate of the click
-
queueClickPacket
public static void queueClickPacket(int mouseInfo, int x, int y)Queues a click packet with the specified mouse information, x and y coordinates.- Parameters:
mouseInfo- the mouse information to include in the click packetx- the x-coordinate of the clicky- the y-coordinate of the click
-
createClickPacket
public static RSPacketBufferNode createClickPacket(int mouseInfo, int x, int y)
Creates a packet for a mouse click event.- Parameters:
mouseInfo- the mouse information.x- the x-coordinate of the click.y- the y-coordinate of the click.- Returns:
- the packet buffer node.
-
-