aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2023-01-10 18:17:30 +0100
committerGitHub <noreply@github.com>2023-01-10 18:17:30 +0100
commita20dc50f1fca420784e76487f2ac96fd768e847b (patch)
treede4901b1877f7b0f4972d81fc59889b7518dda56 /src/main
parentb2a2166e2c9086b0e5678d9088522437fe6af607 (diff)
parentd8cbd73fc74c033f21282277640772ad54d38916 (diff)
downloadGT5-Unofficial-a20dc50f1fca420784e76487f2ac96fd768e847b.tar.gz
GT5-Unofficial-a20dc50f1fca420784e76487f2ac96fd768e847b.tar.bz2
GT5-Unofficial-a20dc50f1fca420784e76487f2ac96fd768e847b.zip
Merge pull request #134 from GTNewHorizons/CelestialThingy-spotless-fixes
Spotless apply for branch CelestialThingy for #132
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/github/technus/tectech/nei/IMCForNEI.java5
-rw-r--r--src/main/java/com/github/technus/tectech/recipe/EyeOfHarmonyRecipe.java2
-rw-r--r--src/main/java/com/github/technus/tectech/recipe/TT_recipe.java34
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)));
}