From 38548d88c2430b85b81ba71aa4df3e105f5f0ddb Mon Sep 17 00:00:00 2001 From: Cat Core Date: Sun, 11 Feb 2024 12:47:52 +0100 Subject: [PATCH] Fix style --- .../legacyfabric/fabric/impl/command/CommandManagerImpl.java | 2 +- .../legacyfabric/fabric/impl/command/CommandManagerImpl.java | 2 +- .../legacyfabric/fabric/impl/command/CommandManagerImpl.java | 2 +- .../net/legacyfabric/fabric/impl/logger/LoggerHelper.java | 4 ++-- .../fabric/api/permission/v1/PermissionsApiHolder.java | 2 +- .../fabric/impl/registry/sync/remappers/RegistryRemapper.java | 2 +- .../fabric/mixin/registry/sync/WorldSaveHandlerMixin.java | 2 +- .../fabric/impl/resource/loader/ModNioResourcePack.java | 2 +- .../impl/resource/loader/ResourceManagerHelperImpl.java | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/legacy-fabric-command-api-v2/1.12.2/src/main/java/net/legacyfabric/fabric/impl/command/CommandManagerImpl.java b/legacy-fabric-command-api-v2/1.12.2/src/main/java/net/legacyfabric/fabric/impl/command/CommandManagerImpl.java index f9c082e5a..26a8d0982 100644 --- a/legacy-fabric-command-api-v2/1.12.2/src/main/java/net/legacyfabric/fabric/impl/command/CommandManagerImpl.java +++ b/legacy-fabric-command-api-v2/1.12.2/src/main/java/net/legacyfabric/fabric/impl/command/CommandManagerImpl.java @@ -27,7 +27,6 @@ import com.google.common.collect.Lists; import com.google.common.collect.Multimap; -import net.legacyfabric.fabric.impl.logger.LoggerHelper; import org.jetbrains.annotations.Nullable; import net.minecraft.text.HoverEvent; @@ -49,6 +48,7 @@ import net.legacyfabric.fabric.api.logger.v1.Logger; import net.legacyfabric.fabric.api.permission.v1.PermissibleCommandSource; import net.legacyfabric.fabric.api.util.Location; +import net.legacyfabric.fabric.impl.logger.LoggerHelper; public class CommandManagerImpl implements CommandManager { private static final Logger LOGGER = Logger.get(LoggerHelper.API, "Command Manager"); diff --git a/legacy-fabric-command-api-v2/1.7.10/src/main/java/net/legacyfabric/fabric/impl/command/CommandManagerImpl.java b/legacy-fabric-command-api-v2/1.7.10/src/main/java/net/legacyfabric/fabric/impl/command/CommandManagerImpl.java index 2237e7064..462975f15 100644 --- a/legacy-fabric-command-api-v2/1.7.10/src/main/java/net/legacyfabric/fabric/impl/command/CommandManagerImpl.java +++ b/legacy-fabric-command-api-v2/1.7.10/src/main/java/net/legacyfabric/fabric/impl/command/CommandManagerImpl.java @@ -27,7 +27,6 @@ import com.google.common.collect.Lists; import com.google.common.collect.Multimap; -import net.legacyfabric.fabric.impl.logger.LoggerHelper; import org.jetbrains.annotations.Nullable; import net.minecraft.text.HoverEvent; @@ -50,6 +49,7 @@ import net.legacyfabric.fabric.api.logger.v1.Logger; import net.legacyfabric.fabric.api.permission.v1.PermissibleCommandSource; import net.legacyfabric.fabric.api.util.Location; +import net.legacyfabric.fabric.impl.logger.LoggerHelper; public class CommandManagerImpl implements CommandManager { private static final Logger LOGGER = Logger.get(LoggerHelper.API, "Command Manager"); diff --git a/legacy-fabric-command-api-v2/1.8.9/src/main/java/net/legacyfabric/fabric/impl/command/CommandManagerImpl.java b/legacy-fabric-command-api-v2/1.8.9/src/main/java/net/legacyfabric/fabric/impl/command/CommandManagerImpl.java index f9c082e5a..26a8d0982 100644 --- a/legacy-fabric-command-api-v2/1.8.9/src/main/java/net/legacyfabric/fabric/impl/command/CommandManagerImpl.java +++ b/legacy-fabric-command-api-v2/1.8.9/src/main/java/net/legacyfabric/fabric/impl/command/CommandManagerImpl.java @@ -27,7 +27,6 @@ import com.google.common.collect.Lists; import com.google.common.collect.Multimap; -import net.legacyfabric.fabric.impl.logger.LoggerHelper; import org.jetbrains.annotations.Nullable; import net.minecraft.text.HoverEvent; @@ -49,6 +48,7 @@ import net.legacyfabric.fabric.api.logger.v1.Logger; import net.legacyfabric.fabric.api.permission.v1.PermissibleCommandSource; import net.legacyfabric.fabric.api.util.Location; +import net.legacyfabric.fabric.impl.logger.LoggerHelper; public class CommandManagerImpl implements CommandManager { private static final Logger LOGGER = Logger.get(LoggerHelper.API, "Command Manager"); diff --git a/legacy-fabric-logger-api-v1/common/src/main/java/net/legacyfabric/fabric/impl/logger/LoggerHelper.java b/legacy-fabric-logger-api-v1/common/src/main/java/net/legacyfabric/fabric/impl/logger/LoggerHelper.java index a55d4dce6..87fc1d2d5 100644 --- a/legacy-fabric-logger-api-v1/common/src/main/java/net/legacyfabric/fabric/impl/logger/LoggerHelper.java +++ b/legacy-fabric-logger-api-v1/common/src/main/java/net/legacyfabric/fabric/impl/logger/LoggerHelper.java @@ -20,9 +20,9 @@ import net.legacyfabric.fabric.api.logger.v1.Logger; public class LoggerHelper { - public static final String API = "LegacyFabricAPI"; + public static final String API = "LegacyFabricAPI"; - public static Logger getLogger(String context, String... subs) { + public static Logger getLogger(String context, String... subs) { try { return new NativeLoggerImpl(context, subs); } catch (NoClassDefFoundError e) { diff --git a/legacy-fabric-permissions-api-v1/common/src/main/java/net/legacyfabric/fabric/api/permission/v1/PermissionsApiHolder.java b/legacy-fabric-permissions-api-v1/common/src/main/java/net/legacyfabric/fabric/api/permission/v1/PermissionsApiHolder.java index 6131bfc4c..0d93553a4 100644 --- a/legacy-fabric-permissions-api-v1/common/src/main/java/net/legacyfabric/fabric/api/permission/v1/PermissionsApiHolder.java +++ b/legacy-fabric-permissions-api-v1/common/src/main/java/net/legacyfabric/fabric/api/permission/v1/PermissionsApiHolder.java @@ -17,7 +17,6 @@ package net.legacyfabric.fabric.api.permission.v1; -import net.legacyfabric.fabric.impl.logger.LoggerHelper; import org.jetbrains.annotations.ApiStatus; import net.minecraft.client.MinecraftClient; @@ -28,6 +27,7 @@ import net.fabricmc.loader.api.FabricLoader; import net.legacyfabric.fabric.api.logger.v1.Logger; +import net.legacyfabric.fabric.impl.logger.LoggerHelper; /** * @deprecated Unstable API, may change in the future. diff --git a/legacy-fabric-registry-sync-api-v1/common/src/main/java/net/legacyfabric/fabric/impl/registry/sync/remappers/RegistryRemapper.java b/legacy-fabric-registry-sync-api-v1/common/src/main/java/net/legacyfabric/fabric/impl/registry/sync/remappers/RegistryRemapper.java index aeafaf6de..36a5d30f7 100644 --- a/legacy-fabric-registry-sync-api-v1/common/src/main/java/net/legacyfabric/fabric/impl/registry/sync/remappers/RegistryRemapper.java +++ b/legacy-fabric-registry-sync-api-v1/common/src/main/java/net/legacyfabric/fabric/impl/registry/sync/remappers/RegistryRemapper.java @@ -24,12 +24,12 @@ import com.google.common.collect.BiMap; import com.google.common.collect.HashBiMap; -import net.legacyfabric.fabric.impl.logger.LoggerHelper; import net.minecraft.nbt.NbtCompound; import net.legacyfabric.fabric.api.logger.v1.Logger; import net.legacyfabric.fabric.api.registry.v1.RegistryHelper; import net.legacyfabric.fabric.api.util.Identifier; +import net.legacyfabric.fabric.impl.logger.LoggerHelper; import net.legacyfabric.fabric.impl.registry.RegistryHelperImpl; import net.legacyfabric.fabric.impl.registry.sync.compat.IdListCompat; import net.legacyfabric.fabric.impl.registry.sync.compat.SimpleRegistryCompat; diff --git a/legacy-fabric-registry-sync-api-v1/common/src/main/java/net/legacyfabric/fabric/mixin/registry/sync/WorldSaveHandlerMixin.java b/legacy-fabric-registry-sync-api-v1/common/src/main/java/net/legacyfabric/fabric/mixin/registry/sync/WorldSaveHandlerMixin.java index 0ffa97f70..e1e9e554f 100644 --- a/legacy-fabric-registry-sync-api-v1/common/src/main/java/net/legacyfabric/fabric/mixin/registry/sync/WorldSaveHandlerMixin.java +++ b/legacy-fabric-registry-sync-api-v1/common/src/main/java/net/legacyfabric/fabric/mixin/registry/sync/WorldSaveHandlerMixin.java @@ -23,7 +23,6 @@ import java.io.FileOutputStream; import java.io.IOException; -import net.legacyfabric.fabric.impl.logger.LoggerHelper; import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; @@ -39,6 +38,7 @@ import net.minecraft.world.level.LevelProperties; import net.legacyfabric.fabric.api.logger.v1.Logger; +import net.legacyfabric.fabric.impl.logger.LoggerHelper; import net.legacyfabric.fabric.impl.registry.sync.ServerRegistryRemapper; @Mixin(WorldSaveHandler.class) diff --git a/legacy-fabric-resource-loader-v1/common/src/main/java/net/legacyfabric/fabric/impl/resource/loader/ModNioResourcePack.java b/legacy-fabric-resource-loader-v1/common/src/main/java/net/legacyfabric/fabric/impl/resource/loader/ModNioResourcePack.java index 0e2ceec5a..e4c1f8227 100644 --- a/legacy-fabric-resource-loader-v1/common/src/main/java/net/legacyfabric/fabric/impl/resource/loader/ModNioResourcePack.java +++ b/legacy-fabric-resource-loader-v1/common/src/main/java/net/legacyfabric/fabric/impl/resource/loader/ModNioResourcePack.java @@ -29,7 +29,6 @@ import java.util.Set; import java.util.regex.Pattern; -import net.legacyfabric.fabric.impl.logger.LoggerHelper; import net.minecraft.resource.AbstractFileResourcePack; import net.fabricmc.loader.api.ModContainer; @@ -37,6 +36,7 @@ import net.legacyfabric.fabric.api.logger.v1.Logger; import net.legacyfabric.fabric.api.resource.ModResourcePack; +import net.legacyfabric.fabric.impl.logger.LoggerHelper; public class ModNioResourcePack extends AbstractFileResourcePack implements ModResourcePack, Closeable { private static final Logger LOGGER = Logger.get(LoggerHelper.API, "ModNioResourcePack"); diff --git a/legacy-fabric-resource-loader-v1/common/src/main/java/net/legacyfabric/fabric/impl/resource/loader/ResourceManagerHelperImpl.java b/legacy-fabric-resource-loader-v1/common/src/main/java/net/legacyfabric/fabric/impl/resource/loader/ResourceManagerHelperImpl.java index 65dcc0903..cde29ee19 100644 --- a/legacy-fabric-resource-loader-v1/common/src/main/java/net/legacyfabric/fabric/impl/resource/loader/ResourceManagerHelperImpl.java +++ b/legacy-fabric-resource-loader-v1/common/src/main/java/net/legacyfabric/fabric/impl/resource/loader/ResourceManagerHelperImpl.java @@ -25,13 +25,13 @@ import com.google.common.collect.Lists; -import net.legacyfabric.fabric.impl.logger.LoggerHelper; import net.minecraft.resource.ResourceReloadListener; import net.legacyfabric.fabric.api.logger.v1.Logger; import net.legacyfabric.fabric.api.resource.IdentifiableResourceReloadListener; import net.legacyfabric.fabric.api.resource.ResourceManagerHelper; import net.legacyfabric.fabric.api.util.Identifier; +import net.legacyfabric.fabric.impl.logger.LoggerHelper; public class ResourceManagerHelperImpl implements ResourceManagerHelper { private static final ResourceManagerHelperImpl INSTANCE = new ResourceManagerHelperImpl();