aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorboubou19 <miisterunknown@gmail.com>2024-08-26 22:42:57 +0200
committerboubou19 <miisterunknown@gmail.com>2024-08-26 22:42:57 +0200
commite8a543c2996e1da2ea6923b13e2b353d3fcb29c2 (patch)
treee6f61da48a9470753b2ce6a0ec782c14df5d3681 /src/main/java
parent05aa235493d7c453999e317392c2273abca170ef (diff)
downloadGT5-Unofficial-e8a543c2996e1da2ea6923b13e2b353d3fcb29c2.tar.gz
GT5-Unofficial-e8a543c2996e1da2ea6923b13e2b353d3fcb29c2.tar.bz2
GT5-Unofficial-e8a543c2996e1da2ea6923b13e2b353d3fcb29c2.zip
fix issues caused by merge
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/elisis/gtnhlanth/common/block/ShieldedAccGlass.java2
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/blocks/BW_Blocks.java2
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/blocks/BW_TileEntityContainer_MachineBlock.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/block/GodforgeGlassBlock.java2
-rw-r--r--src/main/java/com/github/technus/tectech/thing/block/QuantumGlassBlock.java2
-rw-r--r--src/main/java/common/blocks/BaseGTUpdateableBlock.java2
-rw-r--r--src/main/java/goodgenerator/blocks/regularBlock/Casing.java2
-rw-r--r--src/main/java/goodgenerator/blocks/regularBlock/TEBlock.java2
-rw-r--r--src/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java2
-rw-r--r--src/main/java/gregtech/common/blocks/GT_Block_Laser.java2
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksAbstract.java2
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/GTNEIOrePlugin.java50
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/plugin/IMCForNEI.java24
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java16
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5Base.java19
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5SmallOreStat.java39
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5UndergroundFluid.java31
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5VeinStat.java27
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/plugin/item/ItemDimensionDisplay.java6
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/plugin/renderer/ItemDimensionDisplayRenderer.java14
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/util/CSVMaker.java43
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/util/DimensionHelper.java180
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/util/GT5CFGHelper.java62
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/util/GT5OreLayerHelper.java21
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/util/GT5OreSmallHelper.java43
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/util/GT5UndergroundFluidHelper.java19
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/util/OreVeinLayer.java2
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/util/StringPaddingHack.java4
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/util/XtoBool.java7
29 files changed, 345 insertions, 284 deletions
diff --git a/src/main/java/com/elisis/gtnhlanth/common/block/ShieldedAccGlass.java b/src/main/java/com/elisis/gtnhlanth/common/block/ShieldedAccGlass.java
index a114cead69..bdc57f1e59 100644
--- a/src/main/java/com/elisis/gtnhlanth/common/block/ShieldedAccGlass.java
+++ b/src/main/java/com/elisis/gtnhlanth/common/block/ShieldedAccGlass.java
@@ -49,7 +49,7 @@ public class ShieldedAccGlass extends Block {
@Override
public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ if (GregTech_API.isMachineBlock(this, aMetaData)) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/blocks/BW_Blocks.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/blocks/BW_Blocks.java
index 1a00d16d85..b881f47cfa 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/blocks/BW_Blocks.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/blocks/BW_Blocks.java
@@ -108,7 +108,7 @@ public class BW_Blocks extends Block {
@Override
public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ if (GregTech_API.isMachineBlock(this, aMetaData)) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/blocks/BW_TileEntityContainer_MachineBlock.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/blocks/BW_TileEntityContainer_MachineBlock.java
index 0d1d9fd20b..e7abd0e6ce 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/blocks/BW_TileEntityContainer_MachineBlock.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/blocks/BW_TileEntityContainer_MachineBlock.java
@@ -37,7 +37,7 @@ public class BW_TileEntityContainer_MachineBlock extends BW_TileEntityContainer
@Override
public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ if (GregTech_API.isMachineBlock(this, aMetaData)) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
diff --git a/src/main/java/com/github/technus/tectech/thing/block/GodforgeGlassBlock.java b/src/main/java/com/github/technus/tectech/thing/block/GodforgeGlassBlock.java
index 67c77f5ac4..0ac925926c 100644
--- a/src/main/java/com/github/technus/tectech/thing/block/GodforgeGlassBlock.java
+++ b/src/main/java/com/github/technus/tectech/thing/block/GodforgeGlassBlock.java
@@ -93,7 +93,7 @@ public class GodforgeGlassBlock extends BlockBase {
@Override
public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMeta) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ if (GregTech_API.isMachineBlock(this, aMeta)) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
diff --git a/src/main/java/com/github/technus/tectech/thing/block/QuantumGlassBlock.java b/src/main/java/com/github/technus/tectech/thing/block/QuantumGlassBlock.java
index 790b4f390b..6c22595b53 100644
--- a/src/main/java/com/github/technus/tectech/thing/block/QuantumGlassBlock.java
+++ b/src/main/java/com/github/technus/tectech/thing/block/QuantumGlassBlock.java
@@ -97,7 +97,7 @@ public final class QuantumGlassBlock extends BlockBase {
@Override
public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMeta) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ if (GregTech_API.isMachineBlock(this, aMeta)) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
diff --git a/src/main/java/common/blocks/BaseGTUpdateableBlock.java b/src/main/java/common/blocks/BaseGTUpdateableBlock.java
index ef61327dd7..ff38365d79 100644
--- a/src/main/java/common/blocks/BaseGTUpdateableBlock.java
+++ b/src/main/java/common/blocks/BaseGTUpdateableBlock.java
@@ -50,7 +50,7 @@ public abstract class BaseGTUpdateableBlock extends Block {
@Override
public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ if (GregTech_API.isMachineBlock(this, aMetaData)) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
diff --git a/src/main/java/goodgenerator/blocks/regularBlock/Casing.java b/src/main/java/goodgenerator/blocks/regularBlock/Casing.java
index 9e01d783d2..c10b0f7184 100644
--- a/src/main/java/goodgenerator/blocks/regularBlock/Casing.java
+++ b/src/main/java/goodgenerator/blocks/regularBlock/Casing.java
@@ -97,7 +97,7 @@ public class Casing extends Block {
@Override
public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ if (GregTech_API.isMachineBlock(this, aMetaData)) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
diff --git a/src/main/java/goodgenerator/blocks/regularBlock/TEBlock.java b/src/main/java/goodgenerator/blocks/regularBlock/TEBlock.java
index 6c13a9c680..dcd2bdd801 100644
--- a/src/main/java/goodgenerator/blocks/regularBlock/TEBlock.java
+++ b/src/main/java/goodgenerator/blocks/regularBlock/TEBlock.java
@@ -114,7 +114,7 @@ public class TEBlock extends BlockContainer {
@Override
public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ if (GregTech_API.isMachineBlock(this, aMetaData)) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
}
aWorld.removeTileEntity(aX, aY, aZ);
diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java b/src/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java
index 59144666df..cfa51f8e99 100644
--- a/src/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java
+++ b/src/main/java/gregtech/common/blocks/GT_Block_Casings_Abstract.java
@@ -100,7 +100,7 @@ public abstract class GT_Block_Casings_Abstract extends GT_Generic_Block
@Override
public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ if (GregTech_API.isMachineBlock(this, aMetaData)) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Laser.java b/src/main/java/gregtech/common/blocks/GT_Block_Laser.java
index 7ec03ce781..038b114284 100644
--- a/src/main/java/gregtech/common/blocks/GT_Block_Laser.java
+++ b/src/main/java/gregtech/common/blocks/GT_Block_Laser.java
@@ -41,7 +41,7 @@ public class GT_Block_Laser extends Block implements ITileEntityProvider {
@Override
public void breakBlock(World aWorld, int aX, int aY, int aZ, Block aBlock, int aMetaData) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ if (GregTech_API.isMachineBlock(this, aMetaData)) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksAbstract.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksAbstract.java
index a87f6c92b3..79d9e2c458 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksAbstract.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocksAbstract.java
@@ -106,7 +106,7 @@ public abstract class GregtechMetaCasingBlocksAbstract extends GT_Block_Casings_
@Override
public void breakBlock(final World aWorld, final int aX, final int aY, final int aZ, final Block aBlock,
final int aMetaData) {
- if (GregTech_API.isMachineBlock(this, aWorld.getBlockMetadata(aX, aY, aZ))) {
+ if (GregTech_API.isMachineBlock(this, aMetaData)) {
GregTech_API.causeMachineUpdate(aWorld, aX, aY, aZ);
}
}
diff --git a/src/main/java/pers/gwyog/gtneioreplugin/GTNEIOrePlugin.java b/src/main/java/pers/gwyog/gtneioreplugin/GTNEIOrePlugin.java
index f16fa148e0..e277ba915c 100644
--- a/src/main/java/pers/gwyog/gtneioreplugin/GTNEIOrePlugin.java
+++ b/src/main/java/pers/gwyog/gtneioreplugin/GTNEIOrePlugin.java
@@ -13,6 +13,7 @@ import cpw.mods.fml.common.event.FMLLoadCompleteEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
+import gregtech.GT_Version;
import pers.gwyog.gtneioreplugin.plugin.IMCForNEI;
import pers.gwyog.gtneioreplugin.plugin.block.ModBlocks;
import pers.gwyog.gtneioreplugin.util.CSVMaker;
@@ -21,15 +22,15 @@ import pers.gwyog.gtneioreplugin.util.GT5OreSmallHelper;
import pers.gwyog.gtneioreplugin.util.GT5UndergroundFluidHelper;
@Mod(
- modid = GTNEIOrePlugin.MODID,
- name = GTNEIOrePlugin.NAME,
- version = GTNEIOrePlugin.VERSION,
- dependencies = "required-after:gregtech;required-after:NotEnoughItems")
+ modid = GTNEIOrePlugin.MODID,
+ name = GTNEIOrePlugin.NAME,
+ version = GTNEIOrePlugin.VERSION,
+ dependencies = "required-after:gregtech;required-after:NotEnoughItems")
public class GTNEIOrePlugin {
public static final String MODID = "gtneioreplugin";
public static final String NAME = "GT NEI Ore Plugin GT:NH Mod";
- public static final String VERSION = Tags.VERSION;
+ public static final String VERSION = GT_Version.VERSION;
public static final Logger LOG = LogManager.getLogger(NAME);
public static boolean csv = false;
public static String CSVname;
@@ -39,7 +40,8 @@ public class GTNEIOrePlugin {
@Override
public Item getTabIconItem() {
- return GameRegistry.makeItemStack("gregtech:gt.blockores", 386, 1, null).getItem();
+ return GameRegistry.makeItemStack("gregtech:gt.blockores", 386, 1, null)
+ .getItem();
}
};
@@ -50,27 +52,27 @@ public class GTNEIOrePlugin {
public void preinit(FMLPreInitializationEvent event) {
Config c = new Config(event, MODID + ".cfg");
csv = c.tConfig.getBoolean(
- "print csv",
- "ALL",
- false,
- "print csv, you need apache commons collections to be injected in the minecraft jar.");
+ "print csv",
+ "ALL",
+ false,
+ "print csv, you need apache commons collections to be injected in the minecraft jar.");
CSVname = c.tConfig.getString(
- "CSV_name",
- "ALL",
- event.getModConfigurationDirectory() + "/GTNH-Oresheet.csv",
- "rename the oresheet here, it will appear in /config");
+ "CSV_name",
+ "ALL",
+ event.getModConfigurationDirectory() + "/GTNH-Oresheet.csv",
+ "rename the oresheet here, it will appear in /config");
CSVnameSmall = c.tConfig.getString(
- "CSV_name_for_Small_Ore_Sheet",
- "ALL",
- event.getModConfigurationDirectory() + "/GTNH-Small-Ores-Sheet.csv",
- "rename the oresheet here, it will appear in /config");
+ "CSV_name_for_Small_Ore_Sheet",
+ "ALL",
+ event.getModConfigurationDirectory() + "/GTNH-Small-Ores-Sheet.csv",
+ "rename the oresheet here, it will appear in /config");
maxTooltipLines = c.tConfig.getInt(
- "MaxToolTipLines",
- "ALL",
- 11,
- 1,
- Integer.MAX_VALUE,
- "Maximum number of lines the dimension names tooltip can have before it wraps around.");
+ "MaxToolTipLines",
+ "ALL",
+ 11,
+ 1,
+ Integer.MAX_VALUE,
+ "Maximum number of lines the dimension names tooltip can have before it wraps around.");
c.save();
}
diff --git a/src/main/java/pers/gwyog/gtneioreplugin/plugin/IMCForNEI.java b/src/main/java/pers/gwyog/gtneioreplugin/plugin/IMCForNEI.java
index 2c69b68a4a..bf59fa292c 100644
--- a/src/main/java/pers/gwyog/gtneioreplugin/plugin/IMCForNEI.java
+++ b/src/main/java/pers/gwyog/gtneioreplugin/plugin/IMCForNEI.java
@@ -15,23 +15,23 @@ public class IMCForNEI {
sendHandler("pers.gwyog.gtneioreplugin.plugin.gregtech5.PluginGT5SmallOreStat", "gregtech:gt.blockores:85");
sendHandler(
- "pers.gwyog.gtneioreplugin.plugin.gregtech5.PluginGT5UndergroundFluid",
- "gregtech:gt.metaitem.01:32619");
+ "pers.gwyog.gtneioreplugin.plugin.gregtech5.PluginGT5UndergroundFluid",
+ "gregtech:gt.metaitem.01:32619");
sendCatalyst(
- "pers.gwyog.gtneioreplugin.plugin.gregtech5.PluginGT5UndergroundFluid",
- "gregtech:gt.blockmachines:1157");
+ "pers.gwyog.gtneioreplugin.plugin.gregtech5.PluginGT5UndergroundFluid",
+ "gregtech:gt.blockmachines:1157");
sendCatalyst(
- "pers.gwyog.gtneioreplugin.plugin.gregtech5.PluginGT5UndergroundFluid",
- "gregtech:gt.blockmachines:141");
+ "pers.gwyog.gtneioreplugin.plugin.gregtech5.PluginGT5UndergroundFluid",
+ "gregtech:gt.blockmachines:141");
sendCatalyst(
- "pers.gwyog.gtneioreplugin.plugin.gregtech5.PluginGT5UndergroundFluid",
- "gregtech:gt.blockmachines:142");
+ "pers.gwyog.gtneioreplugin.plugin.gregtech5.PluginGT5UndergroundFluid",
+ "gregtech:gt.blockmachines:142");
sendCatalyst(
- "pers.gwyog.gtneioreplugin.plugin.gregtech5.PluginGT5UndergroundFluid",
- "gregtech:gt.blockmachines:149");
+ "pers.gwyog.gtneioreplugin.plugin.gregtech5.PluginGT5UndergroundFluid",
+ "gregtech:gt.blockmachines:149");
sendCatalyst(
- "pers.gwyog.gtneioreplugin.plugin.gregtech5.PluginGT5UndergroundFluid",
- "gregtech:gt.blockmachines:148");
+ "pers.gwyog.gtneioreplugin.plugin.gregtech5.PluginGT5UndergroundFluid",
+ "gregtech:gt.blockmachines:148");
}
private static void sendHandler(String name, String itemStack) {
diff --git a/src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java b/src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java
index 5509341696..0db39c8e28 100644
--- a/src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java
+++ b/src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java
@@ -1,6 +1,6 @@
package pers.gwyog.gtneioreplugin.plugin;
-import java.awt.*;
+import java.awt.Rectangle;
import net.minecraft.client.resources.I18n;
import net.minecraft.util.EnumChatFormatting;
@@ -29,9 +29,7 @@ public abstract class PluginBase extends TemplateRecipeHandler {
public void loadTransferRects() {
int stringLength = GuiDraw.getStringWidth(EnumChatFormatting.BOLD + I18n.format("gtnop.gui.nei.seeAll"));
transferRects.add(
- new RecipeTransferRect(
- new Rectangle(getGuiWidth() - stringLength - 3, 5, stringLength, 9),
- getOutputId()));
+ new RecipeTransferRect(new Rectangle(getGuiWidth() - stringLength - 3, 5, stringLength, 9), getOutputId()));
}
public abstract String getOutputId();
@@ -45,10 +43,10 @@ public abstract class PluginBase extends TemplateRecipeHandler {
*/
protected void drawSeeAllRecipesLabel() {
GuiDraw.drawStringR(
- EnumChatFormatting.BOLD + I18n.format("gtnop.gui.nei.seeAll"),
- getGuiWidth() - 3,
- 5,
- 0x404040,
- false);
+ EnumChatFormatting.BOLD + I18n.format("gtnop.gui.nei.seeAll"),
+ getGuiWidth() - 3,
+ 5,
+ 0x404040,
+ false);
}
}
diff --git a/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5Base.java b/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5Base.java
index 646e6d2bc7..895a23ddb1 100644
--- a/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5Base.java
+++ b/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5Base.java
@@ -11,8 +11,11 @@ import pers.gwyog.gtneioreplugin.plugin.PluginBase;
public abstract class PluginGT5Base extends PluginBase {
protected static String getLocalizedNameForItem(Materials aMaterial, String aFormat) {
- return String.format(aFormat.replace("%s", "%temp").replace("%material", "%s"), aMaterial.mLocalizedName)
- .replace("%temp", "%s");
+ return String.format(
+ aFormat.replace("%s", "%temp")
+ .replace("%material", "%s"),
+ aMaterial.mLocalizedName)
+ .replace("%temp", "%s");
}
protected static String getLocalizedNameForItem(String aFormat, int aMaterialID) {
@@ -28,10 +31,10 @@ public abstract class PluginGT5Base extends PluginBase {
public static String getGTOreLocalizedName(short index) {
if (!getLocalizedNameForItem(GT_LanguageManager.getTranslation(getGTOreUnlocalizedName(index)), index % 1000)
- .contains("Awakened"))
+ .contains("Awakened"))
return getLocalizedNameForItem(
- GT_LanguageManager.getTranslation(getGTOreUnlocalizedName(index)),
- index % 1000);
+ GT_LanguageManager.getTranslation(getGTOreUnlocalizedName(index)),
+ index % 1000);
else return "Aw. Draconium Ore";
}
@@ -46,11 +49,9 @@ public abstract class PluginGT5Base extends PluginBase {
protected int getMaximumMaterialIndex(short meta, boolean smallOre) {
int offset = smallOre ? 16000 : 0;
if (!getGTOreLocalizedName((short) (meta + offset + 5000))
- .equals(getGTOreUnlocalizedName((short) (meta + offset + 5000))))
- return 7;
+ .equals(getGTOreUnlocalizedName((short) (meta + offset + 5000)))) return 7;
else if (!getGTOreLocalizedName((short) (meta + offset + 5000))
- .equals(getGTOreUnlocalizedName((short) (meta + offset + 5000))))
- return 6;
+ .equals(getGTOreUnlocalizedName((short) (meta + offset + 5000)))) return 6;
else return 5;
}
diff --git a/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5SmallOreStat.java b/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5SmallOreStat.java
index 76bd66d280..1cf0157354 100644
--- a/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5SmallOreStat.java
+++ b/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5SmallOreStat.java
@@ -62,7 +62,8 @@ public class PluginGT5SmallOreStat extends PluginGT5Base {
@Override
public void loadCraftingRecipes(ItemStack stack) {
- if (stack.getUnlocalizedName().startsWith("gt.blockores")) {
+ if (stack.getUnlocalizedName()
+ .startsWith("gt.blockores")) {
short oreMeta = (short) (stack.getItemDamage() % 1000);
loadSmallOre(oreMeta, getMaximumMaterialIndex(oreMeta, true));
} else if (GT5OreSmallHelper.mapOreDropUnlocalizedNameToOreMeta.containsKey(stack.getUnlocalizedName())) {
@@ -79,7 +80,8 @@ public class PluginGT5SmallOreStat extends PluginGT5Base {
}
for (OreSmallWrapper oreVein : GT5OreSmallHelper.mapOreSmallWrapper.values()) {
- if (Arrays.asList(getDimNameArrayFromVeinName(oreVein.oreGenName)).contains(dimension)) {
+ if (Arrays.asList(getDimNameArrayFromVeinName(oreVein.oreGenName))
+ .contains(dimension)) {
addSmallOre(oreVein, 7);
}
}
@@ -103,17 +105,17 @@ public class PluginGT5SmallOreStat extends PluginGT5Base {
private void addSmallOre(OreSmallWrapper smallOre, int maximumIndex) {
this.arecipes.add(
- new CachedOreSmallRecipe(
- smallOre.oreGenName,
- smallOre.getMaterialDrops(maximumIndex),
- getStoneDusts(maximumIndex),
- GT5OreSmallHelper.mapOreMetaToOreDrops.get(smallOre.oreMeta)));
+ new CachedOreSmallRecipe(
+ smallOre.oreGenName,
+ smallOre.getMaterialDrops(maximumIndex),
+ getStoneDusts(maximumIndex),
+ GT5OreSmallHelper.mapOreMetaToOreDrops.get(smallOre.oreMeta)));
}
private List<ItemStack> getStoneDusts(int maximumIndex) {
List<ItemStack> materialDustStackList = new ArrayList<>();
for (int i = 0; i < maximumIndex; i++) materialDustStackList
- .add(GT_OreDictUnificator.get(OrePrefixes.dust, GT5OreSmallHelper.getDroppedDusts()[i], 1L));
+ .add(GT_OreDictUnificator.get(OrePrefixes.dust, GT5OreSmallHelper.getDroppedDusts()[i], 1L));
return materialDustStackList;
}
@@ -130,7 +132,11 @@ public class PluginGT5SmallOreStat extends PluginGT5Base {
private String[] getDimNameArrayFromVeinName(String veinName) {
OreSmallWrapper oreSmall = GT5OreSmallHelper.mapOreSmallWrapper.get(veinName);
String[] dims = DimensionHelper.parseDimNames(GT5OreSmallHelper.bufferedDims.get(oreSmall));
- Arrays.sort(dims, Comparator.comparingInt(s -> Arrays.asList(DimensionHelper.DimNameDisplayed).indexOf(s)));
+ Arrays.sort(
+ dims,
+ Comparator.comparingInt(
+ s -> Arrays.asList(DimensionHelper.DimNameDisplayed)
+ .indexOf(s)));
return dims;
}
@@ -143,20 +149,17 @@ public class PluginGT5SmallOreStat extends PluginGT5Base {
private final List<PositionedStack> dimensionDisplayItems = new ArrayList<>();
public CachedOreSmallRecipe(String oreGenName, List<ItemStack> stackList, List<ItemStack> materialDustStackList,
- List<ItemStack> dropStackList) {
+ List<ItemStack> dropStackList) {
this.oreGenName = oreGenName;
this.positionedStackOreSmall = new PositionedStack(stackList, 2, 0);
this.positionedStackMaterialDust = new PositionedStack(
- materialDustStackList,
- 43,
- 79 + getRestrictBiomeOffset());
+ materialDustStackList,
+ 43,
+ 79 + getRestrictBiomeOffset());
List<PositionedStack> positionedDropStackList = new ArrayList<>();
int i = 1;
for (ItemStack stackDrop : dropStackList) positionedDropStackList.add(
- new PositionedStack(
- stackDrop,
- 43 + 20 * (i % 4),
- 79 + 16 * ((i++) / 4) + getRestrictBiomeOffset()));
+ new PositionedStack(stackDrop, 43 + 20 * (i % 4), 79 + 16 * ((i++) / 4) + getRestrictBiomeOffset()));
this.positionedDropStackList = positionedDropStackList;
setDimensionDisplayItems();
}
@@ -193,7 +196,7 @@ public class PluginGT5SmallOreStat extends PluginGT5Base {
List<PositionedStack> outputs = new ArrayList<>();
positionedStackOreSmall.setPermutationToRender((cycleticks / 20) % positionedStackOreSmall.items.length);
positionedStackMaterialDust
- .setPermutationToRender((cycleticks / 20) % positionedStackMaterialDust.items.length);
+ .setPermutationToRender((cycleticks / 20) % positionedStackMaterialDust.items.length);
outputs.add(positionedStackOreSmall);
outputs.add(positionedStackMaterialDust);
outputs.addAll(positionedDropStackList);
diff --git a/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5UndergroundFluid.java b/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5UndergroundFluid.java
index 8f7754bbde..5530f5b145 100644
--- a/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5UndergroundFluid.java
+++ b/src/main/java/pers/gwyog/gtneioreplugin/plugin/gregtech5/PluginGT5UndergroundFluid.java
@@ -30,7 +30,7 @@ public class PluginGT5UndergroundFluid extends PluginBase {
public void loadCraftingRecipes(String outputId, Object... results) {
if (outputId.equals(getOutputId())) {
for (Map.Entry<String, List<UndergroundFluidWrapper>> entry : GT5UndergroundFluidHelper.getAllEntries()
- .entrySet()) {
+ .entrySet()) {
Fluid fluid = FluidRegistry.getFluid(entry.getKey());
if (fluid != null) {
this.arecipes.add(new CachedUndergroundFluidRecipe(fluid, entry.getValue()));
@@ -67,7 +67,7 @@ public class PluginGT5UndergroundFluid extends PluginBase {
String dimension = ItemDimensionDisplay.getDimension(ingredient);
if (dimension != null) {
for (Map.Entry<String, List<UndergroundFluidWrapper>> entry : GT5UndergroundFluidHelper.getAllEntries()
- .entrySet()) {
+ .entrySet()) {
boolean found = false;
for (UndergroundFluidWrapper wrapper : entry.getValue()) {
if (wrapper.dimension.equals(dimension)) {
@@ -103,11 +103,14 @@ public class PluginGT5UndergroundFluid extends PluginBase {
for (int i = 0; i < recipe.dimensionDisplayItems.size(); i++) {
GuiDraw.drawStringC(format.format((double) recipe.chances.get(i) / 100) + "%", xChance, y, black, false);
GuiDraw.drawStringC(
- recipe.minAmounts.get(i).toString() + "-" + recipe.maxAmounts.get(i).toString(),
- xAmount,
- y,
- black,
- false);
+ recipe.minAmounts.get(i)
+ .toString() + "-"
+ + recipe.maxAmounts.get(i)
+ .toString(),
+ xAmount,
+ y,
+ black,
+ false);
y += lineSpace;
}
}
@@ -132,18 +135,18 @@ public class PluginGT5UndergroundFluid extends PluginBase {
private CachedUndergroundFluidRecipe(Fluid fluid, List<UndergroundFluidWrapper> wrappers) {
targetFluidDisplay = new PositionedStack(
- GT_Utility.getFluidDisplayStack(fluid),
- getGuiWidth() / 2 - halfItemLength,
- 3);
+ GT_Utility.getFluidDisplayStack(fluid),
+ getGuiWidth() / 2 - halfItemLength,
+ 3);
int y = 50 - halfItemLength;
for (UndergroundFluidWrapper wrapper : wrappers) {
ItemStack dimensionDisplay = ItemDimensionDisplay.getItem(wrapper.dimension);
if (dimensionDisplay != null) {
dimensionDisplayItem