This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
generated from MeteorDevelopment/meteor-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 24
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
78 additions
and
3 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
38 changes: 38 additions & 0 deletions
38
src/main/java/nekiplay/meteorplus/features/modules/movement/SprintPlus.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,38 @@ | ||
package nekiplay.meteorplus.features.modules.movement; | ||
|
||
import meteordevelopment.meteorclient.settings.BoolSetting; | ||
import meteordevelopment.meteorclient.settings.Setting; | ||
import meteordevelopment.meteorclient.settings.SettingGroup; | ||
import meteordevelopment.meteorclient.systems.modules.Categories; | ||
import meteordevelopment.meteorclient.systems.modules.Module; | ||
import meteordevelopment.meteorclient.utils.player.Rotations; | ||
|
||
public class SprintPlus extends Module { | ||
public SprintPlus() { | ||
super(Categories.Movement, "sprint+", "Better sprint module."); | ||
} | ||
private final SettingGroup sgGeneral = settings.getDefaultGroup(); | ||
private final Setting<Boolean> allDirections = sgGeneral.add(new BoolSetting.Builder() | ||
.name("All-directions") | ||
.defaultValue(false) | ||
.build() | ||
); | ||
private final Setting<Boolean> ignoreBlindness = sgGeneral.add(new BoolSetting.Builder() | ||
.name("Ignore-blindness") | ||
.defaultValue(false) | ||
.build() | ||
); | ||
|
||
private final Setting<Boolean> ignoreHunger = sgGeneral.add(new BoolSetting.Builder() | ||
.name("Ignore-hunger") | ||
.defaultValue(false) | ||
.build() | ||
); | ||
|
||
public boolean shouldSprintOmnidirectionally() { return isActive() && allDirections.get(); } | ||
|
||
public boolean shouldIgnoreBlindness() { return isActive() && ignoreBlindness.get(); } | ||
|
||
public boolean shouldIgnoreHunger() { return isActive() && ignoreHunger.get(); } | ||
|
||
} |
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