diff options
author | isXander <xandersmith2008@gmail.com> | 2022-11-12 13:28:44 +0000 |
---|---|---|
committer | isXander <xandersmith2008@gmail.com> | 2022-11-12 13:28:44 +0000 |
commit | 6b9e7e79e0ae178d25bce119507d16bf3c37096c (patch) | |
tree | 69717915f1fd1173ac05679f07fac2420cbea016 /src | |
parent | 558b120e2d4924a84860c3f84415ab573040a293 (diff) | |
download | YetAnotherConfigLib-6b9e7e79e0ae178d25bce119507d16bf3c37096c.tar.gz YetAnotherConfigLib-6b9e7e79e0ae178d25bce119507d16bf3c37096c.tar.bz2 YetAnotherConfigLib-6b9e7e79e0ae178d25bce119507d16bf3c37096c.zip |
little changes
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java | 6 | ||||
-rw-r--r-- | src/main/java/dev/isxander/yacl/impl/YetAnotherConfigLibImpl.java | 4 | ||||
-rw-r--r-- | src/main/java/dev/isxander/yacl/impl/utils/YACLConstants.java (renamed from src/main/java/dev/isxander/yacl/impl/utils/YaclConstants.java) | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java b/src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java index 732492d..0f9311a 100644 --- a/src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java +++ b/src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java @@ -1,7 +1,7 @@ package dev.isxander.yacl.config; import com.google.gson.*; -import dev.isxander.yacl.impl.utils.YaclConstants; +import dev.isxander.yacl.impl.utils.YACLConstants; import net.minecraft.text.Style; import net.minecraft.text.Text; @@ -42,7 +42,7 @@ public class GsonConfigInstance<T> extends ConfigInstance<T> { @Override public void save() { try { - YaclConstants.LOGGER.info("Saving {}...", getConfigClass().getSimpleName()); + YACLConstants.LOGGER.info("Saving {}...", getConfigClass().getSimpleName()); Files.writeString(path, gson.toJson(getConfig()), StandardOpenOption.TRUNCATE_EXISTING, StandardOpenOption.CREATE); } catch (IOException e) { e.printStackTrace(); @@ -57,7 +57,7 @@ public class GsonConfigInstance<T> extends ConfigInstance<T> { return; } - YaclConstants.LOGGER.info("Loading {}...", getConfigClass().getSimpleName()); + YACLConstants.LOGGER.info("Loading {}...", getConfigClass().getSimpleName()); setConfig(gson.fromJson(Files.readString(path), getConfigClass())); } catch (IOException e) { e.printStackTrace(); diff --git a/src/main/java/dev/isxander/yacl/impl/YetAnotherConfigLibImpl.java b/src/main/java/dev/isxander/yacl/impl/YetAnotherConfigLibImpl.java index 38112f4..eb23eac 100644 --- a/src/main/java/dev/isxander/yacl/impl/YetAnotherConfigLibImpl.java +++ b/src/main/java/dev/isxander/yacl/impl/YetAnotherConfigLibImpl.java @@ -4,7 +4,7 @@ import com.google.common.collect.ImmutableList; import dev.isxander.yacl.api.ConfigCategory; import dev.isxander.yacl.api.YetAnotherConfigLib; import dev.isxander.yacl.gui.YACLScreen; -import dev.isxander.yacl.impl.utils.YaclConstants; +import dev.isxander.yacl.impl.utils.YACLConstants; import net.minecraft.client.gui.screen.Screen; import net.minecraft.text.Text; @@ -13,7 +13,7 @@ import java.util.function.Consumer; public record YetAnotherConfigLibImpl(Text title, ImmutableList<ConfigCategory> categories, Runnable saveFunction, Consumer<YACLScreen> initConsumer) implements YetAnotherConfigLib { @Override public Screen generateScreen(Screen parent) { - YaclConstants.LOGGER.info("Generating YACL screen"); + YACLConstants.LOGGER.info("Generating YACL screen"); return new YACLScreen(this, parent); } } diff --git a/src/main/java/dev/isxander/yacl/impl/utils/YaclConstants.java b/src/main/java/dev/isxander/yacl/impl/utils/YACLConstants.java index aadeb18..3d382d4 100644 --- a/src/main/java/dev/isxander/yacl/impl/utils/YaclConstants.java +++ b/src/main/java/dev/isxander/yacl/impl/utils/YACLConstants.java @@ -3,6 +3,6 @@ package dev.isxander.yacl.impl.utils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -public class YaclConstants { +public class YACLConstants { public static final Logger LOGGER = LoggerFactory.getLogger("YetAnotherConfigLib"); } |