aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/enums
diff options
context:
space:
mode:
authorБатьків Нестор-Євген Васильович <mama040508@gmail.com>2023-12-26 23:08:33 +0200
committerGitHub <noreply@github.com>2023-12-26 22:08:33 +0100
commit064c46683f58fd8a981dd03c13cf92556a28656e (patch)
treefc0847e4c913b9557712acee0fe91f588aba5aa0 /src/main/java/gregtech/api/enums
parent44e88e146c87774088c68686bdea130fe7dde78d (diff)
downloadGT5-Unofficial-064c46683f58fd8a981dd03c13cf92556a28656e.tar.gz
GT5-Unofficial-064c46683f58fd8a981dd03c13cf92556a28656e.tar.bz2
GT5-Unofficial-064c46683f58fd8a981dd03c13cf92556a28656e.zip
Add modes to tools (#2423)
* Add tool modes change * Deprecate! Deprecate! Deprecate! * Add mode to item name * Opsie * Byte 8 bit * Add enum * Spotless * Types types types!!!! God I love types * Make it trigger when player clicks midair * update deps + fix wci --------- Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech/api/enums')
-rw-r--r--src/main/java/gregtech/api/enums/ToolModes.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/enums/ToolModes.java b/src/main/java/gregtech/api/enums/ToolModes.java
new file mode 100644
index 0000000000..2f849279a4
--- /dev/null
+++ b/src/main/java/gregtech/api/enums/ToolModes.java
@@ -0,0 +1,18 @@
+package gregtech.api.enums;
+
+public enum ToolModes {
+
+ REGULAR(0),
+ WRENCH_LINE(1);
+
+ private final byte modeValue;
+
+ ToolModes(int modeValue) {
+ this.modeValue = (byte) modeValue;
+ }
+
+ public byte get() {
+ return modeValue;
+ }
+
+}