generated from LabyMod/addon-template
-
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.
Added auto crafter V3, half automatic sword (HABK) and full automatic…
… sword (VABK).
- Loading branch information
Showing
50 changed files
with
2,066 additions
and
220 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
20 changes: 20 additions & 0 deletions
20
core/src/main/java/tmb/randy/tmbgriefergames/core/commands/AutocraftV3Command.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,20 @@ | ||
package tmb.randy.tmbgriefergames.core.commands; | ||
|
||
import net.labymod.api.client.chat.command.Command; | ||
import tmb.randy.tmbgriefergames.core.Addon; | ||
|
||
public class AutocraftV3Command extends Command { | ||
|
||
public AutocraftV3Command() { | ||
super("craftV3"); | ||
} | ||
|
||
@Override | ||
public boolean execute(String prefix, String[] arguments) { | ||
if(!Addon.isGG()) | ||
return false; | ||
|
||
Addon.getSharedInstance().getBridge().startAutocrafterV3(); | ||
return true; | ||
} | ||
} |
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
1 change: 0 additions & 1 deletion
1
core/src/main/java/tmb/randy/tmbgriefergames/core/config/ChatSubConfig.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
35 changes: 35 additions & 0 deletions
35
core/src/main/java/tmb/randy/tmbgriefergames/core/config/SwordsSubConfig.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,35 @@ | ||
package tmb.randy.tmbgriefergames.core.config; | ||
|
||
import net.labymod.api.client.gui.screen.key.Key; | ||
import net.labymod.api.client.gui.screen.widget.widgets.input.MultiKeybindWidget.MultiKeyBindSetting; | ||
import net.labymod.api.client.gui.screen.widget.widgets.input.SliderWidget.SliderSetting; | ||
import net.labymod.api.client.gui.screen.widget.widgets.input.SwitchWidget.SwitchSetting; | ||
import net.labymod.api.configuration.loader.Config; | ||
import net.labymod.api.configuration.loader.property.ConfigProperty; | ||
import net.labymod.api.configuration.settings.annotation.SettingSection; | ||
|
||
public class SwordsSubConfig extends Config { | ||
|
||
@SettingSection("habk") | ||
|
||
@SwitchSetting | ||
private final ConfigProperty<Boolean> HABKenabled = new ConfigProperty<>(false); | ||
@SliderSetting(min = 100, max = 5000, steps = 100) | ||
private final ConfigProperty<Integer> HABKcooldown = new ConfigProperty<>(1000); | ||
|
||
@SettingSection("vabk") | ||
|
||
@SliderSetting(min = 3, max = 40, steps = 1) | ||
private final ConfigProperty<Integer> VABKloadTime = new ConfigProperty<>(16); | ||
@SliderSetting(min = 3, max = 40, steps = 1) | ||
private final ConfigProperty<Integer> VABKswitchCooldown = new ConfigProperty<>(18); | ||
@MultiKeyBindSetting | ||
private final ConfigProperty<Key[]> VABKhotkey = new ConfigProperty<>(new Key[]{Key.L_SHIFT, Key.V}); | ||
|
||
public ConfigProperty<Boolean> getHABKenabled() { return this.HABKenabled; } | ||
public ConfigProperty<Integer> getHABKcooldown() { return this.HABKcooldown; } | ||
|
||
public ConfigProperty<Integer> getVABKloadTime() { return VABKloadTime; } | ||
public ConfigProperty<Integer> getVABKswitchCooldown() { return VABKswitchCooldown; } | ||
public ConfigProperty<Key[]> getVABKhotkey() { return VABKhotkey; } | ||
} |
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.