diff options
author | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2019-03-27 08:23:29 +0100 |
---|---|---|
committer | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2019-03-27 08:23:29 +0100 |
commit | a0bfd778cc565865f31653e4c82b9c219a3fe69c (patch) | |
tree | 569dd04ae1bc2ca5a9cbeee013fa25843d41c35d /src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java | |
parent | e2c8a04abd39d3d3be2256156adb16938a26dea8 (diff) | |
download | GT5-Unofficial-a0bfd778cc565865f31653e4c82b9c219a3fe69c.tar.gz GT5-Unofficial-a0bfd778cc565865f31653e4c82b9c219a3fe69c.tar.bz2 GT5-Unofficial-a0bfd778cc565865f31653e4c82b9c219a3fe69c.zip |
1.0.7
+ updated Java 7 -> 8
+ Buffered Input from cfg
+ refractor, code improvements
+ small ores completely working
+ added tooltip
+ added logger
+ added ic2 to gradle
+ updated gradle deps
+ restored base gt compability
+ small ore csv (untested)
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
Diffstat (limited to 'src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java')
-rw-r--r-- | src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java b/src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java index cbca2a66c6..9186eddcbd 100644 --- a/src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java +++ b/src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java @@ -1,20 +1,19 @@ package pers.gwyog.gtneioreplugin.plugin; -import java.awt.Rectangle; - import codechicken.lib.gui.GuiDraw; import codechicken.nei.recipe.TemplateRecipeHandler; -import codechicken.nei.recipe.TemplateRecipeHandler.RecipeTransferRect; import net.minecraft.client.resources.I18n; import net.minecraft.util.EnumChatFormatting; +import java.awt.*; + public class PluginBase extends TemplateRecipeHandler { @Override public int recipiesPerPage() { return 1; } - + @Override public String getRecipeName() { return null; @@ -24,17 +23,17 @@ public class PluginBase extends TemplateRecipeHandler { public String getGuiTexture() { return "gtneioreplugin:textures/gui/nei/guiBase.png"; } - + @Override public void loadTransferRects() { int stringLength = GuiDraw.getStringWidth(EnumChatFormatting.BOLD + I18n.format("gui.nei.seeAll")); - transferRects.add(new RecipeTransferRect(new Rectangle(getGuiWidth()-stringLength-3, 5, stringLength, 9), getOutputId())); + transferRects.add(new RecipeTransferRect(new Rectangle(getGuiWidth() - stringLength - 3, 5, stringLength, 9), getOutputId())); } - + public String getOutputId() { return null; } - + public String getWorldNameTranslated(boolean genOverworld) { String worldNameTranslated = ""; if (genOverworld) { @@ -44,9 +43,9 @@ public class PluginBase extends TemplateRecipeHandler { } return worldNameTranslated; } - + public int getGuiWidth() { return 166; } - + } |