diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2021-05-25 05:07:26 +0800 |
---|---|---|
committer | Glease <4586901+Glease@users.noreply.github.com> | 2021-05-25 09:29:31 +0800 |
commit | d8c5d33c7df2402c8a5b4595957cad22d8771dc3 (patch) | |
tree | 43e0ca637715d2e2c2d603dd7adcf89315942002 /src/main/java/gregtech/api/util | |
parent | 12582fb1cec74a5d05a1adfedc1eb04e4f7409c1 (diff) | |
download | GT5-Unofficial-d8c5d33c7df2402c8a5b4595957cad22d8771dc3.tar.gz GT5-Unofficial-d8c5d33c7df2402c8a5b4595957cad22d8771dc3.tar.bz2 GT5-Unofficial-d8c5d33c7df2402c8a5b4595957cad22d8771dc3.zip |
Allow client send preference to server
Signed-off-by: Glease <4586901+Glease@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/api/util')
-rw-r--r-- | src/main/java/gregtech/api/util/GT_ClientPreference.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/util/GT_ClientPreference.java b/src/main/java/gregtech/api/util/GT_ClientPreference.java new file mode 100644 index 0000000000..dbd458dc7a --- /dev/null +++ b/src/main/java/gregtech/api/util/GT_ClientPreference.java @@ -0,0 +1,17 @@ +package gregtech.api.util; + +public class GT_ClientPreference { + private final boolean mSingleBlockInitialFilter; + + public GT_ClientPreference(boolean mSingleBlockInitialFilter) { + this.mSingleBlockInitialFilter = mSingleBlockInitialFilter; + } + + public GT_ClientPreference(GT_Config aClientDataFile) { + this.mSingleBlockInitialFilter = aClientDataFile.get("preference", "mSingleBlockInitialFilter", false); + } + + public boolean isSingleBlockInitialFilterEnabled() { + return mSingleBlockInitialFilter; + } +} |