Skip to content

docs(api): add and update utility class documentation#1681

Open
mzarglis wants to merge 2 commits intochsami:developmentfrom
mzarglis:docs/api-documentation-updates
Open

docs(api): add and update utility class documentation#1681
mzarglis wants to merge 2 commits intochsami:developmentfrom
mzarglis:docs/api-documentation-updates

Conversation

@mzarglis
Copy link

Summary

Add new and update existing API documentation for Microbot utility classes.

Changes

New documentation (10 files)

File Description
Mouse.md Mouse input utilities
NewMenuEntry.md Menu entry creation
Rs2Antiban.md Anti-ban utilities
Rs2DepositBox.md Deposit box interactions
Rs2Farming.md Farming utilities
Rs2Gembag.md Gem bag utilities
Rs2GrandExchange.md Grand Exchange interactions
Rs2RunePouch.md Rune pouch utilities
Rs2Shop.md Shop interactions
Rs2WorldPoint.md World point utilities

Updated documentation (10 files)

File Description
Rs2Cannon.md Cannon utilities
Rs2GameObject.md Game object interactions
Rs2GroundItem.md Ground item interactions
Rs2Npc.md NPC interactions
Rs2Pvp.md PvP utilities
Rs2Settings.md Settings utilities
Rs2Spells.md Spell casting utilities
Rs2Tab.md Tab/interface utilities
Rs2Walker.md Walking/pathfinding utilities
Rs2Widget.md Widget interaction utilities

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 13, 2026

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

This PR adds and updates comprehensive API documentation across the docs/api/ directory. Seventeen documentation files are created or expanded, including new pages for Mouse, NewMenuEntry, Rs2Antiban, Rs2DepositBox, Rs2Farming, Rs2Gembag, Rs2GrandExchange, Rs2RunePouch, Rs2Shop, and Rs2WorldPoint. Several existing documentation files are enhanced with full content replacing TODO placeholders. Deprecation notices are added to Rs2GameObject, Rs2GroundItem, and Rs2Npc, directing users to the Queryable API as a migration path. No changes to implementation code are made.

Possibly related PRs

  • 2.0.41 #1607: Updates Rs2GameObject API surface implementation while this PR adds deprecation documentation for the same class.
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding and updating API documentation for utility classes across multiple files.
Description check ✅ Passed The description is directly related to the changeset, providing a comprehensive overview of new and updated documentation files with clear categorization and file listings.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into development

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@docs/api/Rs2DepositBox.md`:
- Around line 10-24: Update the first overload's description for
bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, WorldPoint
initialPlayerLocation) to use the same terminology as the other overloads:
change "Banks items if the inventory is full" to "Banks items if the inventory
does not have enough empty slots" (or equivalent phrasing referencing
emptySlotCount), so all four method descriptions consistently state they bank
when the inventory lacks sufficient empty slots and then walk back to the
initial player location.

Comment on lines 10 to 24
### `bankItemsAndWalkBackToOriginalPosition`
- **Signature**: `public static boolean bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, WorldPoint initialPlayerLocation)`
- **Description**: Banks items if the inventory is full and returns to the initial player location.

### `bankItemsAndWalkBackToOriginalPosition`
- **Signature**: `public static boolean bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, WorldPoint initialPlayerLocation, int emptySlotCount)`
- **Description**: Banks items if your inventory does not have enough empty slots. Will walk back to the initial player location.

### `bankItemsAndWalkBackToOriginalPosition`
- **Signature**: `public static boolean bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, WorldPoint initialPlayerLocation, int emptySlotCount, int distance)`
- **Description**: Banks items if the inventory does not have enough empty slots. Will walk back to the initial player location, allowing a specified distance deviation.

### `bankItemsAndWalkBackToOriginalPosition`
- **Signature**: `public static boolean bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, boolean exactItemNames, WorldPoint initialPlayerLocation, int emptySlotCount, int distance)`
- **Description**: Banks items at a deposit box if the inventory does not have enough empty slots. Will walk back to the initial player location. Supports exact or partial item name matching.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Inconsistent terminology across overloaded method descriptions.

The first overload (lines 11-12) describes the behavior as "Banks items if the inventory is full", while the remaining three overloads (lines 15-16, 19-20, 23-24) describe it as "if the inventory does not have enough empty slots". These should use consistent terminology - preferably "if the inventory does not have enough empty slots" since the method accepts an emptySlotCount parameter in the more specific overloads.

📝 Suggested consistency fix
 ### `bankItemsAndWalkBackToOriginalPosition`
 - **Signature**: `public static boolean bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, WorldPoint initialPlayerLocation)`
-- **Description**: Banks items if the inventory is full and returns to the initial player location.
+- **Description**: Banks items if the inventory does not have enough empty slots and returns to the initial player location.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
### `bankItemsAndWalkBackToOriginalPosition`
- **Signature**: `public static boolean bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, WorldPoint initialPlayerLocation)`
- **Description**: Banks items if the inventory is full and returns to the initial player location.
### `bankItemsAndWalkBackToOriginalPosition`
- **Signature**: `public static boolean bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, WorldPoint initialPlayerLocation, int emptySlotCount)`
- **Description**: Banks items if your inventory does not have enough empty slots. Will walk back to the initial player location.
### `bankItemsAndWalkBackToOriginalPosition`
- **Signature**: `public static boolean bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, WorldPoint initialPlayerLocation, int emptySlotCount, int distance)`
- **Description**: Banks items if the inventory does not have enough empty slots. Will walk back to the initial player location, allowing a specified distance deviation.
### `bankItemsAndWalkBackToOriginalPosition`
- **Signature**: `public static boolean bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, boolean exactItemNames, WorldPoint initialPlayerLocation, int emptySlotCount, int distance)`
- **Description**: Banks items at a deposit box if the inventory does not have enough empty slots. Will walk back to the initial player location. Supports exact or partial item name matching.
### `bankItemsAndWalkBackToOriginalPosition`
- **Signature**: `public static boolean bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, WorldPoint initialPlayerLocation)`
- **Description**: Banks items if the inventory does not have enough empty slots and returns to the initial player location.
### `bankItemsAndWalkBackToOriginalPosition`
- **Signature**: `public static boolean bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, WorldPoint initialPlayerLocation, int emptySlotCount)`
- **Description**: Banks items if your inventory does not have enough empty slots. Will walk back to the initial player location.
### `bankItemsAndWalkBackToOriginalPosition`
- **Signature**: `public static boolean bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, WorldPoint initialPlayerLocation, int emptySlotCount, int distance)`
- **Description**: Banks items if the inventory does not have enough empty slots. Will walk back to the initial player location, allowing a specified distance deviation.
### `bankItemsAndWalkBackToOriginalPosition`
- **Signature**: `public static boolean bankItemsAndWalkBackToOriginalPosition(List<String> itemNames, boolean exactItemNames, WorldPoint initialPlayerLocation, int emptySlotCount, int distance)`
- **Description**: Banks items at a deposit box if the inventory does not have enough empty slots. Will walk back to the initial player location. Supports exact or partial item name matching.
🧰 Tools
🪛 markdownlint-cli2 (0.20.0)

[warning] 14-14: Multiple headings with the same content

(MD024, no-duplicate-heading)


[warning] 18-18: Multiple headings with the same content

(MD024, no-duplicate-heading)


[warning] 22-22: Multiple headings with the same content

(MD024, no-duplicate-heading)

🤖 Prompt for AI Agents
In `@docs/api/Rs2DepositBox.md` around lines 10 - 24, Update the first overload's
description for bankItemsAndWalkBackToOriginalPosition(List<String> itemNames,
WorldPoint initialPlayerLocation) to use the same terminology as the other
overloads: change "Banks items if the inventory is full" to "Banks items if the
inventory does not have enough empty slots" (or equivalent phrasing referencing
emptySlotCount), so all four method descriptions consistently state they bank
when the inventory lacks sufficient empty slots and then walk back to the
initial player location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant