aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java
diff options
context:
space:
mode:
authorGWYOG <jjn1jjn2@163.com>2016-11-04 02:41:12 +0800
committerGWYOG <jjn1jjn2@163.com>2016-11-04 02:41:12 +0800
commitf01a9dda14179eda02171c5e48d9ff4f7fd0fd5f (patch)
treeebb30dfc2865b0ec434fe52a7785a2b31beb27e3 /src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java
parent25ca5d5b8cf8dc2adece8db5baccf6ec0640264e (diff)
downloadGT5-Unofficial-f01a9dda14179eda02171c5e48d9ff4f7fd0fd5f.tar.gz
GT5-Unofficial-f01a9dda14179eda02171c5e48d9ff4f7fd0fd5f.tar.bz2
GT5-Unofficial-f01a9dda14179eda02171c5e48d9ff4f7fd0fd5f.zip
Pre-release 1.0.0
Diffstat (limited to 'src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java')
-rw-r--r--src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java b/src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java
new file mode 100644
index 0000000000..e225ea0944
--- /dev/null
+++ b/src/main/java/pers/gwyog/gtneioreplugin/plugin/PluginBase.java
@@ -0,0 +1,46 @@
+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;
+
+public class PluginBase extends TemplateRecipeHandler {
+
+ @Override
+ public int recipiesPerPage() {
+ return 1;
+ }
+
+ @Override
+ public String getRecipeName() {
+ return null;
+ }
+
+ @Override
+ 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()));
+ }
+
+ public String getOutputId() {
+ return null;
+ }
+
+ public String getGTOreUnlocalizedName(short index) {
+ return "gt.blockores." + index + ".name";
+ }
+
+ public int getGuiWidth() {
+ return 166;
+ }
+
+}