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 compressor, auto crafter and fixed some bugs
- Loading branch information
Showing
31 changed files
with
2,244 additions
and
34 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
19 changes: 19 additions & 0 deletions
19
core/src/main/java/tmb/randy/tmbgriefergames/core/commands/AutocraftCommand.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,19 @@ | ||
package tmb.randy.tmbgriefergames.core.commands; | ||
|
||
import net.labymod.api.client.chat.command.Command; | ||
import tmb.randy.tmbgriefergames.core.Addon; | ||
|
||
public class AutocraftCommand extends Command { | ||
|
||
public AutocraftCommand() { | ||
super("autocraft"); | ||
} | ||
|
||
@Override | ||
public boolean execute(String prefix, String[] arguments) { | ||
|
||
Addon.getSharedInstance().getBridge().startNewAutocrafter(); | ||
|
||
return true; | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
core/src/main/java/tmb/randy/tmbgriefergames/core/config/AutoCrafterSubConfig.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 tmb.randy.tmbgriefergames.core.config; | ||
|
||
import net.labymod.api.client.gui.screen.widget.widgets.input.SwitchWidget.SwitchSetting; | ||
import net.labymod.api.client.gui.screen.widget.widgets.input.dropdown.DropdownWidget.DropdownSetting; | ||
import net.labymod.api.configuration.loader.Config; | ||
import net.labymod.api.configuration.loader.property.ConfigProperty; | ||
import tmb.randy.tmbgriefergames.core.enums.AutoCrafterNewFinalAction; | ||
import tmb.randy.tmbgriefergames.core.enums.QueueType; | ||
|
||
public class AutoCrafterSubConfig extends Config { | ||
@DropdownSetting | ||
private final ConfigProperty<QueueType> autoCraftSpeed = new ConfigProperty<>(QueueType.FAST); | ||
|
||
@SwitchSetting | ||
private final ConfigProperty<Boolean> autoDrop = new ConfigProperty<>(false); | ||
|
||
@SwitchSetting | ||
private final ConfigProperty<Boolean> endlessMode = new ConfigProperty<>(false); | ||
|
||
@SwitchSetting | ||
private final ConfigProperty<Boolean> onlyFullStacks = new ConfigProperty<>(false); | ||
|
||
@DropdownSetting | ||
private final ConfigProperty<AutoCrafterNewFinalAction> finalAction = new ConfigProperty<>(AutoCrafterNewFinalAction.COMP); | ||
|
||
public ConfigProperty<QueueType> getAutoCraftSpeed() { return this.autoCraftSpeed; } | ||
public ConfigProperty<Boolean> getAutoDrop() { | ||
return this.autoDrop; | ||
} | ||
|
||
public ConfigProperty<Boolean> getEndlessMode() { | ||
return this.endlessMode; | ||
} | ||
|
||
public ConfigProperty<Boolean> getOnlyFullStacks() { return this.onlyFullStacks; } | ||
|
||
public ConfigProperty<AutoCrafterNewFinalAction> getFinalAction() { return finalAction; } | ||
} |
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
core/src/main/java/tmb/randy/tmbgriefergames/core/enums/AutoCrafterNewFinalAction.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 tmb.randy.tmbgriefergames.core.enums; | ||
|
||
public enum AutoCrafterNewFinalAction { | ||
COMP, DROP | ||
} |
5 changes: 5 additions & 0 deletions
5
core/src/main/java/tmb/randy/tmbgriefergames/core/enums/CompressorState.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 tmb.randy.tmbgriefergames.core.enums; | ||
|
||
public enum CompressorState { | ||
NONE, WAITING_FOR_MENU1, WAITING_FOR_MENU2, COMPRESS1, COMPRESS2, COMPRESS3, COMPRESS4, COMPRESS5, COMPRESS6 | ||
} |
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
Binary file modified
BIN
+6.81 KB
(120%)
core/src/main/resources/assets/tmbgriefergames/textures/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.81 KB
(120%)
core/src/main/resources/assets/tmbgriefergames/themes/fancy/textures/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.81 KB
(120%)
.../src/main/resources/assets/tmbgriefergames/themes/vanilla/textures/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.