-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
e18308d
commit 2292f00
Showing
15 changed files
with
61 additions
and
87 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
21 changes: 7 additions & 14 deletions
21
common/src/main/java/dev/boxadactle/debugkeybind/command/CopySubcommand.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 |
---|---|---|
@@ -1,20 +1,13 @@ | ||
package dev.boxadactle.debugkeybind.command; | ||
|
||
import com.mojang.brigadier.builder.ArgumentBuilder; | ||
import dev.boxadactle.boxlib.command.BCommandManager; | ||
import dev.boxadactle.boxlib.command.BCommandSourceStack; | ||
import dev.boxadactle.boxlib.command.api.BClientSubcommand; | ||
import dev.boxadactle.boxlib.command.api.BSubcommand; | ||
import dev.boxadactle.boxlib.command.api.subcommand.BasicSubcommand; | ||
import dev.boxadactle.debugkeybind.keybind.DebugKeybinds; | ||
|
||
public class CopySubcommand implements BClientSubcommand { | ||
@Override | ||
public ArgumentBuilder<BCommandSourceStack, ?> getSubcommand() { | ||
return BCommandManager.literal("copy"); | ||
} | ||
|
||
@Override | ||
public void build(ArgumentBuilder<BCommandSourceStack, ?> builder) { | ||
builder.then(new DebugSubcommand("location", DebugKeybinds.COPY_LOCATION).buildSubcommand()); | ||
builder.then(new DebugSubcommand("inspect_data", DebugKeybinds.INSPECT).buildSubcommand()); | ||
public class CopySubcommand { | ||
public static BSubcommand create() { | ||
return new BasicSubcommand("copy", (ignored) -> -1) | ||
.registerSubcommand(new DebugSubcommand("location", DebugKeybinds.COPY_LOCATION)) | ||
.registerSubcommand(new DebugSubcommand("inspect_data", DebugKeybinds.INSPECT)); | ||
} | ||
} |
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
12 changes: 6 additions & 6 deletions
12
common/src/main/java/dev/boxadactle/debugkeybind/command/F3Command.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
21 changes: 7 additions & 14 deletions
21
common/src/main/java/dev/boxadactle/debugkeybind/command/ReloadSubcommand.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 |
---|---|---|
@@ -1,21 +1,14 @@ | ||
|
||
package dev.boxadactle.debugkeybind.command; | ||
|
||
import com.mojang.brigadier.builder.ArgumentBuilder; | ||
import dev.boxadactle.boxlib.command.BCommandManager; | ||
import dev.boxadactle.boxlib.command.BCommandSourceStack; | ||
import dev.boxadactle.boxlib.command.api.BClientSubcommand; | ||
import dev.boxadactle.boxlib.command.api.BSubcommand; | ||
import dev.boxadactle.boxlib.command.api.subcommand.BasicSubcommand; | ||
import dev.boxadactle.debugkeybind.keybind.DebugKeybinds; | ||
|
||
public class ReloadSubcommand implements BClientSubcommand { | ||
@Override | ||
public ArgumentBuilder<BCommandSourceStack, ?> getSubcommand() { | ||
return BCommandManager.literal("reload"); | ||
} | ||
|
||
@Override | ||
public void build(ArgumentBuilder<BCommandSourceStack, ?> builder) { | ||
builder.then(new DebugSubcommand("chunks", DebugKeybinds.RELOAD_CHUNKS).buildSubcommand()); | ||
builder.then(new DebugSubcommand("resources", DebugKeybinds.RELOAD_RESOURCEPACKS).buildSubcommand()); | ||
public class ReloadSubcommand { | ||
public static BSubcommand create() { | ||
return new BasicSubcommand("reload", (ignored) -> -1) | ||
.registerSubcommand(new DebugSubcommand("chunks", DebugKeybinds.RELOAD_CHUNKS)) | ||
.registerSubcommand(new DebugSubcommand("resources", DebugKeybinds.RELOAD_RESOURCEPACKS)); | ||
} | ||
} |
27 changes: 10 additions & 17 deletions
27
common/src/main/java/dev/boxadactle/debugkeybind/command/ToggleSubcommand.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 |
---|---|---|
@@ -1,23 +1,16 @@ | ||
package dev.boxadactle.debugkeybind.command; | ||
|
||
import com.mojang.brigadier.builder.ArgumentBuilder; | ||
import dev.boxadactle.boxlib.command.BCommandManager; | ||
import dev.boxadactle.boxlib.command.BCommandSourceStack; | ||
import dev.boxadactle.boxlib.command.api.BClientSubcommand; | ||
import dev.boxadactle.boxlib.command.api.BSubcommand; | ||
import dev.boxadactle.boxlib.command.api.subcommand.BasicSubcommand; | ||
import dev.boxadactle.debugkeybind.keybind.DebugKeybinds; | ||
|
||
public class ToggleSubcommand implements BClientSubcommand { | ||
@Override | ||
public ArgumentBuilder<BCommandSourceStack, ?> getSubcommand() { | ||
return BCommandManager.literal("toggle"); | ||
} | ||
|
||
@Override | ||
public void build(ArgumentBuilder<BCommandSourceStack, ?> builder) { | ||
builder.then(new DebugSubcommand("hitboxes", DebugKeybinds.SHOW_HITBOXES).buildSubcommand()); | ||
builder.then(new DebugSubcommand("chunk_borders", DebugKeybinds.CHUNK_BORDERS).buildSubcommand()); | ||
builder.then(new DebugSubcommand("advanced_tooltips", DebugKeybinds.ADVANCED_TOOLTIPS).buildSubcommand()); | ||
builder.then(new DebugSubcommand("pause_on_lost_focus", DebugKeybinds.PAUSE_FOCUS).buildSubcommand()); | ||
builder.then(new DebugSubcommand("profiling", DebugKeybinds.PROFILING).buildSubcommand()); | ||
public class ToggleSubcommand { | ||
public static BSubcommand create() { | ||
return new BasicSubcommand("toggle", (ignored) -> -1) | ||
.registerSubcommand(new DebugSubcommand("hitboxes", DebugKeybinds.SHOW_HITBOXES)) | ||
.registerSubcommand(new DebugSubcommand("chunk_borders", DebugKeybinds.CHUNK_BORDERS)) | ||
.registerSubcommand(new DebugSubcommand("advanced_tooltips", DebugKeybinds.ADVANCED_TOOLTIPS)) | ||
.registerSubcommand(new DebugSubcommand("pause_on_lost_focus", DebugKeybinds.PAUSE_FOCUS)) | ||
.registerSubcommand(new DebugSubcommand("profiling", DebugKeybinds.PROFILING)); | ||
} | ||
} |
17 changes: 7 additions & 10 deletions
17
common/src/main/java/dev/boxadactle/debugkeybind/mixin/ControlsScreenMixin.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
3 changes: 1 addition & 2 deletions
3
common/src/main/java/dev/boxadactle/debugkeybind/mixin/KeyBindsListMixin.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
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