aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hype/bbsentials/api/Options.java
diff options
context:
space:
mode:
authorHacktheTime <l4bg0jb7@duck.com>2023-08-09 20:46:00 +0200
committerHacktheTime <l4bg0jb7@duck.com>2023-08-09 20:46:00 +0200
commit2cd5f8e6bd42a084022028adcc24ef566fddab95 (patch)
treee06a18df40629371c33b9efce971489812696ac0 /src/main/java/de/hype/bbsentials/api/Options.java
downloadBBsentials-2cd5f8e6bd42a084022028adcc24ef566fddab95.tar.gz
BBsentials-2cd5f8e6bd42a084022028adcc24ef566fddab95.tar.bz2
BBsentials-2cd5f8e6bd42a084022028adcc24ef566fddab95.zip
Initial commit
Diffstat (limited to 'src/main/java/de/hype/bbsentials/api/Options.java')
-rw-r--r--src/main/java/de/hype/bbsentials/api/Options.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/de/hype/bbsentials/api/Options.java b/src/main/java/de/hype/bbsentials/api/Options.java
new file mode 100644
index 0000000..7dc4b0d
--- /dev/null
+++ b/src/main/java/de/hype/bbsentials/api/Options.java
@@ -0,0 +1,13 @@
+package de.hype.bbsentials.api;
+
+import net.minecraft.client.MinecraftClient;
+
+public class Options{
+ public static void setFov(int value) {
+ ((ISimpleOption) (Object) MinecraftClient.getInstance().options.getFov()).set(value);
+ }
+ public static void setGamma(double value) {
+ ((ISimpleOption) (Object) MinecraftClient.getInstance().options.getGamma()).set(value);
+ }
+}
+