-
-
Notifications
You must be signed in to change notification settings - Fork 929
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NoBreakDelay -> BreakDelay, now you can modify the break cooldown (#2865
- Loading branch information
1 parent
f1ca61b
commit e0a12e4
Showing
6 changed files
with
74 additions
and
25 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
.../java/meteordevelopment/meteorclient/events/entity/player/BlockBreakingCooldownEvent.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,17 @@ | ||
/* | ||
* This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client). | ||
* Copyright (c) Meteor Development. | ||
*/ | ||
|
||
package meteordevelopment.meteorclient.events.entity.player; | ||
|
||
public class BlockBreakingCooldownEvent { | ||
private static final BlockBreakingCooldownEvent INSTANCE = new BlockBreakingCooldownEvent(); | ||
|
||
public int cooldown; | ||
|
||
public static BlockBreakingCooldownEvent get(int cooldown) { | ||
INSTANCE.cooldown = cooldown; | ||
return INSTANCE; | ||
} | ||
} |
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
36 changes: 36 additions & 0 deletions
36
src/main/java/meteordevelopment/meteorclient/systems/modules/player/BreakDelay.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,36 @@ | ||
/* | ||
* This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client). | ||
* Copyright (c) Meteor Development. | ||
*/ | ||
|
||
package meteordevelopment.meteorclient.systems.modules.player; | ||
|
||
import meteordevelopment.meteorclient.events.entity.player.BlockBreakingCooldownEvent; | ||
import meteordevelopment.meteorclient.settings.IntSetting; | ||
import meteordevelopment.meteorclient.settings.Setting; | ||
import meteordevelopment.meteorclient.settings.SettingGroup; | ||
import meteordevelopment.meteorclient.systems.modules.Categories; | ||
import meteordevelopment.meteorclient.systems.modules.Module; | ||
import meteordevelopment.orbit.EventHandler; | ||
|
||
public class BreakDelay extends Module { | ||
SettingGroup sgGeneral = settings.getDefaultGroup(); | ||
|
||
private final Setting<Integer> cooldown = sgGeneral.add(new IntSetting.Builder() | ||
.name("cooldown") | ||
.description("Block break cooldown in ticks.") | ||
.defaultValue(0) | ||
.min(0) | ||
.sliderMax(5) | ||
.build() | ||
); | ||
|
||
public BreakDelay() { | ||
super(Categories.Player, "break-delay", "Changes the delay between breaking blocks."); | ||
} | ||
|
||
@EventHandler() | ||
private void onBlockBreakingCooldown(BlockBreakingCooldownEvent event) { | ||
event.cooldown = cooldown.get(); | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
src/main/java/meteordevelopment/meteorclient/systems/modules/player/NoBreakDelay.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