diff options
author | Jason Mitchell <mitchej@gmail.com> | 2023-01-30 10:56:42 -0800 |
---|---|---|
committer | Jason Mitchell <mitchej@gmail.com> | 2023-01-30 10:56:42 -0800 |
commit | 0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a (patch) | |
tree | 1e2c649f3a6ce3f6b2babd0098a5f4819e9cd0b6 /src/main/java/gregtech/client | |
parent | f8cc82edeb9810c45cba762d733a2c909a302faa (diff) | |
download | GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.gz GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.bz2 GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.zip |
[ci skip] spotlessApply with the new settings
Diffstat (limited to 'src/main/java/gregtech/client')
-rw-r--r-- | src/main/java/gregtech/client/GT_GUI_ClientConfig.java | 15 | ||||
-rw-r--r-- | src/main/java/gregtech/client/GT_GuiFactory.java | 5 | ||||
-rw-r--r-- | src/main/java/gregtech/client/GT_TooltipHandler.java | 31 |
3 files changed, 23 insertions, 28 deletions
diff --git a/src/main/java/gregtech/client/GT_GUI_ClientConfig.java b/src/main/java/gregtech/client/GT_GUI_ClientConfig.java index 6c3c174044..49611cfa72 100644 --- a/src/main/java/gregtech/client/GT_GUI_ClientConfig.java +++ b/src/main/java/gregtech/client/GT_GUI_ClientConfig.java @@ -1,18 +1,21 @@ package gregtech.client; -import cpw.mods.fml.client.config.GuiConfig; -import cpw.mods.fml.client.config.IConfigElement; -import gregtech.api.GregTech_API; import java.util.List; import java.util.Map; import java.util.stream.Collectors; + import net.minecraft.client.gui.GuiScreen; import net.minecraftforge.common.config.ConfigCategory; import net.minecraftforge.common.config.ConfigElement; import net.minecraftforge.common.config.Configuration; import net.minecraftforge.common.config.Property; +import cpw.mods.fml.client.config.GuiConfig; +import cpw.mods.fml.client.config.IConfigElement; +import gregtech.api.GregTech_API; + public class GT_GUI_ClientConfig extends GuiConfig { + public GT_GUI_ClientConfig(GuiScreen parentScreen) { super( parentScreen, @@ -28,10 +31,8 @@ public class GT_GUI_ClientConfig extends GuiConfig { private static List<IConfigElement> getConfigElements() { final Configuration config = GregTech_API.sClientDataFile.mConfig; setLanguageKeys(config); - return config.getCategoryNames().stream() - .filter(name -> name.indexOf('.') == -1) - .map(name -> new ConfigElement(config.getCategory(name))) - .collect(Collectors.toList()); + return config.getCategoryNames().stream().filter(name -> name.indexOf('.') == -1) + .map(name -> new ConfigElement(config.getCategory(name))).collect(Collectors.toList()); } private static void setLanguageKeys(Configuration config) { diff --git a/src/main/java/gregtech/client/GT_GuiFactory.java b/src/main/java/gregtech/client/GT_GuiFactory.java index 42dd2babb9..3c8e5cd52c 100644 --- a/src/main/java/gregtech/client/GT_GuiFactory.java +++ b/src/main/java/gregtech/client/GT_GuiFactory.java @@ -1,11 +1,14 @@ package gregtech.client; -import cpw.mods.fml.client.IModGuiFactory; import java.util.Set; + import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiScreen; +import cpw.mods.fml.client.IModGuiFactory; + public class GT_GuiFactory implements IModGuiFactory { + @Override public void initialize(Minecraft minecraftInstance) {} diff --git a/src/main/java/gregtech/client/GT_TooltipHandler.java b/src/main/java/gregtech/client/GT_TooltipHandler.java index f91706ad74..c6a60bc5b5 100644 --- a/src/main/java/gregtech/client/GT_TooltipHandler.java +++ b/src/main/java/gregtech/client/GT_TooltipHandler.java @@ -5,25 +5,15 @@ import static com.gtnewhorizon.gtnhlib.util.AnimatedTooltipHandler.*; public class GT_TooltipHandler { /* - * What you can do: - * - Add simple, unformatted text. - * - Add formatted text. - * Note: you can chain formatting codes but the color must be used first: - * e.g. BLACK + ITALIC will create black, italic text but ITALIC + BLACK will only create black text. - * - add animated text - * - chain multiple static and/or animated text together using chain() - * (Although chaining only static text together is pointless, text() is already able to do that) - * - add multiple lines by using NEW_LINE (either as String or as Supplier<String>) - * Note: formatting only applies for one line - * Note: having a NEW_LINE in animated text results in "skipping" of one formatting since NEW_LINE - * counts as character but is not displayed - * - * Note: adding a tooltip to an item multiple times also creates multiple lines (in the same order they were added) - * - * What you cannot do: - * - add a tooltip depending on NBT, tooltips are only mapped to name and meta - * - * This method is executed on postInit + * What you can do: - Add simple, unformatted text. - Add formatted text. Note: you can chain formatting codes but + * the color must be used first: e.g. BLACK + ITALIC will create black, italic text but ITALIC + BLACK will only + * create black text. - add animated text - chain multiple static and/or animated text together using chain() + * (Although chaining only static text together is pointless, text() is already able to do that) - add multiple + * lines by using NEW_LINE (either as String or as Supplier<String>) Note: formatting only applies for one line + * Note: having a NEW_LINE in animated text results in "skipping" of one formatting since NEW_LINE counts as + * character but is not displayed Note: adding a tooltip to an item multiple times also creates multiple lines (in + * the same order they were added) What you cannot do: - add a tooltip depending on NBT, tooltips are only mapped to + * name and meta This method is executed on postInit */ public static void init() { @@ -42,7 +32,8 @@ public class GT_TooltipHandler { addOredictTooltip("UIV", text(DARK_BLUE + BOLD + "UIV-Tier")); addOredictTooltip("UMV", text(RED + BOLD + UNDERLINE + "UMV-Tier")); addOredictTooltip( - "UXV", animatedText("UXV-Tier", 1, 100, DARK_PURPLE + BOLD + UNDERLINE, DARK_RED + UNDERLINE + BOLD)); + "UXV", + animatedText("UXV-Tier", 1, 100, DARK_PURPLE + BOLD + UNDERLINE, DARK_RED + UNDERLINE + BOLD)); addOredictTooltip( "MAX", chain( |