diff options
author | GitHub GTNH Actions <> | 2023-01-10 15:38:53 +0000 |
---|---|---|
committer | GitHub GTNH Actions <> | 2023-01-10 15:38:53 +0000 |
commit | d8cbd73fc74c033f21282277640772ad54d38916 (patch) | |
tree | de4901b1877f7b0f4972d81fc59889b7518dda56 /src/main | |
parent | be99d41cc25bc1a84cf72dcb15c2841f6e88adbd (diff) | |
download | GT5-Unofficial-d8cbd73fc74c033f21282277640772ad54d38916.tar.gz GT5-Unofficial-d8cbd73fc74c033f21282277640772ad54d38916.tar.bz2 GT5-Unofficial-d8cbd73fc74c033f21282277640772ad54d38916.zip |
spotlessApply
Diffstat (limited to 'src/main')
3 files changed, 25 insertions, 16 deletions
diff --git a/src/main/java/com/github/technus/tectech/nei/IMCForNEI.java b/src/main/java/com/github/technus/tectech/nei/IMCForNEI.java index b36b15b619..9d2659075e 100644 --- a/src/main/java/com/github/technus/tectech/nei/IMCForNEI.java +++ b/src/main/java/com/github/technus/tectech/nei/IMCForNEI.java @@ -1,12 +1,11 @@ package com.github.technus.tectech.nei; -import com.github.technus.tectech.TecTech; +import static com.github.technus.tectech.Reference.MODID; + import cpw.mods.fml.common.Loader; import cpw.mods.fml.common.event.FMLInterModComms; import net.minecraft.nbt.NBTTagCompound; -import static com.github.technus.tectech.Reference.MODID; - public class IMCForNEI { public static void IMCSender() { diff --git a/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java b/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java index 807663c9bb..65f5a0d4a8 100644 --- a/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java +++ b/src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java @@ -229,7 +229,7 @@ public class EyeOfHarmonyRecipe { private static final double QUATERNARY_MULTIPLIER = (0.7); // Mercury/chem bath processing chance. private static final double[] ORE_MULTIPLIER = { - PRIMARY_MULTIPLIER, SECONDARY_MULTIPLIER, TERTIARY_MULTIPLIER, QUATERNARY_MULTIPLIER + PRIMARY_MULTIPLIER, SECONDARY_MULTIPLIER, TERTIARY_MULTIPLIER, QUATERNARY_MULTIPLIER }; public static class HashMapHelper extends HashMap<Materials, Double> { diff --git a/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java b/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java index c8e0b048fe..0c4bbb46eb 100644 --- a/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java +++ b/src/main/java/com/github/technus/tectech/recipe/TT_recipe.java @@ -554,28 +554,35 @@ public class TT_recipe extends GT_Recipe { result.add(translateToLocal("Hydrogen: ") + formatNumbers(recipe.getHydrogenRequirement()) + " L"); result.add(translateToLocal("Helium: ") + formatNumbers(recipe.getHydrogenRequirement()) + " L"); - result.add(translateToLocal("Spacetime Tier: ") + translateToLocal(EOH_TIER_FANCY_NAMES[(int) recipe.getSpacetimeCasingTierRequired()])); + result.add(translateToLocal("Spacetime Tier: ") + + translateToLocal(EOH_TIER_FANCY_NAMES[(int) recipe.getSpacetimeCasingTierRequired()])); if (recipe.getEUOutput() < TRILLION) { result.add(translateToLocal("EU Output: ") + formatNumbers(recipe.getEUOutput()) + " EU"); } else { - result.add(translateToLocal("EU Output: ") + ReadableNumberConverter.INSTANCE.toWideReadableForm(recipe.getEUOutput()) + result.add(translateToLocal("EU Output: ") + + ReadableNumberConverter.INSTANCE.toWideReadableForm(recipe.getEUOutput()) + translateToLocal(" EU")); } if (recipe.getEUOutput() < TRILLION) { - result.add(translateToLocal("EU Input: ") + formatNumbers(recipe.getEUStartCost()) + translateToLocal(" EU")); + result.add(translateToLocal("EU Input: ") + + formatNumbers(recipe.getEUStartCost()) + + translateToLocal(" EU")); } else { result.add(translateToLocal("EU Input: ") - + ReadableNumberConverter.INSTANCE.toWideReadableForm(recipe.getEUStartCost()) + translateToLocal(" EU")); + + ReadableNumberConverter.INSTANCE.toWideReadableForm(recipe.getEUStartCost()) + + translateToLocal(" EU")); } - result.add(translateToLocal("Base Recipe Chance: ") + formatNumbers(100 * recipe.getBaseRecipeSuccessChance()) + "%"); - result.add( - translateToLocal("Recipe Energy Efficiency: ") + formatNumbers(100 * recipe.getRecipeEnergyEfficiency()) + "%"); + result.add(translateToLocal("Base Recipe Chance: ") + + formatNumbers(100 * recipe.getBaseRecipeSuccessChance()) + "%"); + result.add(translateToLocal("Recipe Energy Efficiency: ") + + formatNumbers(100 * recipe.getRecipeEnergyEfficiency()) + "%"); if (recipe.getOutputItems().size() > maxItemsToRender) { - result.add("" + DARK_RED + BOLD + translateToLocal("Warning") + RESET + translateToLocal(": Not all items displayed.")); + result.add("" + DARK_RED + BOLD + translateToLocal("Warning") + RESET + + translateToLocal(": Not all items displayed.")); } return result; @@ -654,8 +661,9 @@ public class TT_recipe extends GT_Recipe { // Draw tooltip on planet item. if (stack.isItemEqual(currentRecipe.getRecipeTriggerItem())) { - currentTip.add( - EnumChatFormatting.GRAY + translateToLocal("Total Items: ") + formatNumbers(currentRecipe.getSumOfItems())); + currentTip.add(EnumChatFormatting.GRAY + + translateToLocal("Total Items: ") + + formatNumbers(currentRecipe.getSumOfItems())); return currentTip; } @@ -663,8 +671,10 @@ public class TT_recipe extends GT_Recipe { double percentage = currentRecipe.getItemStackToProbabilityMap().getOrDefault(stack, -1.0); if (percentage != -1.0) { - currentTip.add(EnumChatFormatting.GRAY + translateToLocal("Percentage of Solid Mass: ") + percentage + "%"); - currentTip.add(EnumChatFormatting.GRAY + translateToLocal("Item Count: ") + currentTip.add( + EnumChatFormatting.GRAY + translateToLocal("Percentage of Solid Mass: ") + percentage + "%"); + currentTip.add(EnumChatFormatting.GRAY + + translateToLocal("Item Count: ") + formatNumbers( currentRecipe.getItemStackToTrueStackSizeMap().get(stack))); } |