-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/java/spigey/asteroide/modules/AutoSlotSwitchModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package spigey.asteroide.modules; | ||
|
||
import meteordevelopment.meteorclient.MeteorClient; | ||
import meteordevelopment.meteorclient.events.world.TickEvent; | ||
import meteordevelopment.meteorclient.mixininterface.IClientPlayerInteractionManager; | ||
import meteordevelopment.meteorclient.systems.modules.Module; | ||
import meteordevelopment.meteorclient.utils.player.InvUtils; | ||
import meteordevelopment.orbit.EventHandler; | ||
import spigey.asteroide.AsteroideAddon; | ||
import spigey.asteroide.util; | ||
|
||
public class AutoSlotSwitchModule extends Module { | ||
public AutoSlotSwitchModule() { | ||
super(AsteroideAddon.CATEGORY, "", ""); | ||
} | ||
// delay | ||
// slot range min | ||
// slot range max | ||
// slot priority | ||
// mode random/next | ||
private boolean SlotActivated = false; | ||
@Override | ||
public void onActivate() { | ||
if(!SlotActivated){return;} | ||
MeteorClient.EVENT_BUS.subscribe(this); | ||
SlotActivated = true; | ||
} | ||
@EventHandler | ||
private void onTick(TickEvent.Post event){ | ||
InvUtils.swap(util.randomNum(0,8), false); | ||
} | ||
} | ||
|
||
|