forked from KuroHere/shoreline
-
Notifications
You must be signed in to change notification settings - Fork 4
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
41 changed files
with
190 additions
and
156 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
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
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
5 changes: 0 additions & 5 deletions
5
src/main/java/net/shoreline/client/api/manager/anticheat/GrimManager.java
This file was deleted.
Oops, something went wrong.
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
5 changes: 5 additions & 0 deletions
5
src/main/java/net/shoreline/client/impl/manager/anticheat/GrimManager.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,5 @@ | ||
package net.shoreline.client.impl.manager.anticheat; | ||
|
||
public class GrimManager { | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...ent/api/manager/anticheat/NCPManager.java → ...nt/impl/manager/anticheat/NCPManager.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
2 changes: 1 addition & 1 deletion
2
...nt/api/manager/client/AccountManager.java → ...t/impl/manager/client/AccountManager.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
2 changes: 1 addition & 1 deletion
2
...lient/api/manager/client/CapeManager.java → ...ient/impl/manager/client/CapeManager.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
2 changes: 1 addition & 1 deletion
2
...nt/api/manager/client/CommandManager.java → ...t/impl/manager/client/CommandManager.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
2 changes: 1 addition & 1 deletion
2
...nt/api/manager/client/DiscordManager.java → ...t/impl/manager/client/DiscordManager.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
2 changes: 1 addition & 1 deletion
2
...ient/api/manager/client/MacroManager.java → ...ent/impl/manager/client/MacroManager.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
2 changes: 1 addition & 1 deletion
2
...ent/api/manager/client/SocialManager.java → ...nt/impl/manager/client/SocialManager.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
2 changes: 1 addition & 1 deletion
2
...ient/api/manager/combat/TotemManager.java → ...ent/impl/manager/combat/TotemManager.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
2 changes: 1 addition & 1 deletion
2
.../client/api/manager/combat/hole/Hole.java → ...client/impl/manager/combat/hole/Hole.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
2 changes: 1 addition & 1 deletion
2
.../api/manager/combat/hole/HoleManager.java → ...impl/manager/combat/hole/HoleManager.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
2 changes: 1 addition & 1 deletion
2
...t/api/manager/combat/hole/HoleSafety.java → .../impl/manager/combat/hole/HoleSafety.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
2 changes: 1 addition & 1 deletion
2
...t/api/manager/network/NetworkManager.java → .../impl/manager/network/NetworkManager.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
2 changes: 1 addition & 1 deletion
2
...nager/network/latency/LatencyManager.java → ...nager/network/latency/LatencyManager.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
2 changes: 1 addition & 1 deletion
2
...network/latency/PlayerLatencyTracker.java → ...network/latency/PlayerLatencyTracker.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
2 changes: 1 addition & 1 deletion
2
...pi/manager/player/InteractionManager.java → ...pl/manager/player/InteractionManager.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
2 changes: 1 addition & 1 deletion
2
.../api/manager/player/InventoryManager.java → ...impl/manager/player/InventoryManager.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
2 changes: 1 addition & 1 deletion
2
...t/api/manager/player/MovementManager.java → .../impl/manager/player/MovementManager.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
2 changes: 1 addition & 1 deletion
2
...t/api/manager/player/PositionManager.java → .../impl/manager/player/PositionManager.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
2 changes: 1 addition & 1 deletion
2
...ager/player/rotation/RotationManager.java → ...ager/player/rotation/RotationManager.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
2 changes: 1 addition & 1 deletion
2
...ager/player/rotation/RotationRequest.java → ...ager/player/rotation/RotationRequest.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
2 changes: 1 addition & 1 deletion
2
...nt/api/manager/world/WaypointManager.java → ...t/impl/manager/world/WaypointManager.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
2 changes: 1 addition & 1 deletion
2
.../api/manager/world/sound/SoundEvents.java → ...impl/manager/world/sound/SoundEvents.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
2 changes: 1 addition & 1 deletion
2
...api/manager/world/sound/SoundManager.java → ...mpl/manager/world/sound/SoundManager.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
2 changes: 1 addition & 1 deletion
2
...t/api/manager/world/tick/TickManager.java → .../impl/manager/world/tick/TickManager.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
2 changes: 1 addition & 1 deletion
2
...ient/api/manager/world/tick/TickSync.java → ...ent/impl/manager/world/tick/TickSync.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
72 changes: 72 additions & 0 deletions
72
src/main/java/net/shoreline/client/impl/module/client/BaritoneModule.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,72 @@ | ||
package net.shoreline.client.impl.module.client; | ||
|
||
import baritone.api.BaritoneAPI; | ||
import net.shoreline.client.api.config.Config; | ||
import net.shoreline.client.api.config.setting.BooleanConfig; | ||
import net.shoreline.client.api.event.EventStage; | ||
import net.shoreline.client.api.event.listener.EventListener; | ||
import net.shoreline.client.api.module.ConcurrentModule; | ||
import net.shoreline.client.api.module.ModuleCategory; | ||
import net.shoreline.client.impl.event.TickEvent; | ||
|
||
/** | ||
* @author Shoreline | ||
* @since 1.0 | ||
*/ | ||
public class BaritoneModule extends ConcurrentModule { | ||
|
||
Config<Boolean> placeConfig = new BooleanConfig("Place", "Allow baritone to place blocks", true); | ||
Config<Boolean> breakConfig = new BooleanConfig("Break", "Allow baritone to break blocks", true); | ||
Config<Boolean> sprintConfig = new BooleanConfig("Sprint", "Allow baritone to sprint", true); | ||
Config<Boolean> inventoryConfig = new BooleanConfig("UseInventory", "Allow baritone to use player inventory", false); | ||
|
||
Config<Boolean> vinesConfig = new BooleanConfig("Vines", "Allow baritone to climb vines", true); | ||
|
||
Config<Boolean> jump256Config = new BooleanConfig("JumpAt256", "Allow baritone to jump at 256 blocks", false); | ||
Config<Boolean> parkourConfig = new BooleanConfig("Parkour", "Allow baritone to jump between blocks", true); | ||
Config<Boolean> parkourPlaceConfig = new BooleanConfig("ParkourPlace", "Allow baritone to jump and place blocks", false); | ||
|
||
Config<Boolean> parkourAscendConfig = new BooleanConfig("ParkourAscend", "Allow baritone to jump up blocks", true); | ||
Config<Boolean> diagonalAscendConfig = new BooleanConfig("DiagonalAscend", "Allow baritone to jump up blocks diagonally", false); | ||
|
||
Config<Boolean> diagonalDescendConfig = new BooleanConfig("DiagonalDescend", "Allow baritone to move down blocks diagonally", false); | ||
Config<Boolean> mineDownConfig = new BooleanConfig("MineDownward", "Allow baritone to mine down", true); | ||
Config<Boolean> legitMineConfig = new BooleanConfig("LegitMine", "Uses baritone legit mine", false); | ||
Config<Boolean> logOnArrivalConfig = new BooleanConfig("LogOnArrival", "Logsout when you arrive at destination", false); | ||
Config<Boolean> freeLookConfig = new BooleanConfig("FreeLook", "Allows you to look around freely while using baritone", true); | ||
Config<Boolean> antiCheatConfig = new BooleanConfig("AntiCheat", "Uses NCP placements and breaks", false); | ||
Config<Boolean> censorCoordsConfig = new BooleanConfig("CensorCoords", "Censors goal coordinates in chat", false); | ||
Config<Boolean> debugConfig = new BooleanConfig("Debug", "Debugs in the chat", false); | ||
|
||
/** | ||
* | ||
*/ | ||
public BaritoneModule() { | ||
super("Baritone", "Configure baritone", ModuleCategory.CLIENT); | ||
} | ||
|
||
@EventListener | ||
public void onTick(TickEvent event) { | ||
if (event.getStage() != EventStage.POST) { | ||
return; | ||
} | ||
BaritoneAPI.getSettings().allowPlace.value = placeConfig.getValue(); | ||
BaritoneAPI.getSettings().allowBreak.value = breakConfig.getValue(); | ||
BaritoneAPI.getSettings().allowSprint.value = sprintConfig.getValue(); | ||
BaritoneAPI.getSettings().allowInventory.value = inventoryConfig.getValue(); | ||
BaritoneAPI.getSettings().allowVines.value = vinesConfig.getValue(); | ||
BaritoneAPI.getSettings().allowJumpAt256.value = jump256Config.getValue(); | ||
BaritoneAPI.getSettings().allowParkour.value = parkourConfig.getValue(); | ||
BaritoneAPI.getSettings().allowParkourAscend.value = parkourAscendConfig.getValue(); | ||
BaritoneAPI.getSettings().allowParkourPlace.value = parkourPlaceConfig.getValue(); | ||
BaritoneAPI.getSettings().allowDiagonalAscend.value = diagonalAscendConfig.getValue(); | ||
BaritoneAPI.getSettings().allowDiagonalDescend.value = diagonalDescendConfig.getValue(); | ||
BaritoneAPI.getSettings().allowDownward.value = mineDownConfig.getValue(); | ||
BaritoneAPI.getSettings().legitMine.value = legitMineConfig.getValue(); | ||
BaritoneAPI.getSettings().disconnectOnArrival.value = logOnArrivalConfig.getValue(); | ||
BaritoneAPI.getSettings().freeLook.value = freeLookConfig.getValue(); | ||
BaritoneAPI.getSettings().antiCheatCompatibility.value = antiCheatConfig.getValue(); | ||
BaritoneAPI.getSettings().censorCoordinates.value = censorCoordsConfig.getValue(); | ||
BaritoneAPI.getSettings().chatDebug.value = debugConfig.getValue(); | ||
} | ||
} |
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
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
Oops, something went wrong.