Skip to content

Commit f59559c

Browse files
authored
Improvement: CrystalAura (#326)
1 parent 1c8b21b commit f59559c

6 files changed

Lines changed: 494 additions & 231 deletions

File tree

‎src/main/kotlin/com/lambda/interaction/managers/hotbar/HotbarRequest.kt‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ package com.lambda.interaction.managers.hotbar
2020
import com.lambda.context.Automated
2121
import com.lambda.interaction.managers.Request
2222

23+
/**
24+
* A request to change the hotbar slot.
25+
* If you are having an issue with the slot not changing, try setting [nowOrNothing] to false.
26+
*
27+
* Example usage:
28+
*
29+
* val slot = 0 // 0-8, 0 = left-most slot
30+
* // ModuleObjectName is the name of the module class basically, so for example, in CrystalAura it is this@CrystalAura
31+
* // nowOrNothing is true by default, silent swapping requires it to be true, normal swapping does not
32+
* // .done checks if the request is done so if it is false you don't want to continue execution
33+
* if (!HotbarRequest(slot, this@ModuleObjectName, nowOrNothing = false).submit().done) return@runSafe
34+
*/
2335
class HotbarRequest(
2436
val slot: Int,
2537
automated: Automated,

0 commit comments

Comments
 (0)