Added location labels and limited 'seed' slots to stack size 16

This commit is contained in:
CrazyPants committed 2014-07-26 23:25:50 +08:00
1 parent 7e9e4c6047
commit a900a4da56
2 files changed
+25 -19

No files matched your search

@@ -39,28 +39,19 @@ public class FarmStationContainer extends AbstractMachineContainer {
public boolean isItemValid(ItemStack itemStack) {
return tileEntity.isItemValidForSlot(slot, itemStack);
}
@Override
public int getSlotStackLimit() {
if(slot > 1 && slot < 6) {
return 16;
}
return 64;
}
});
}
// addSlotToContainer(new Slot(tileEntity, 0, 54, 17) {
// @Override
// public boolean isItemValid(ItemStack itemStack) {
// return tileEntity.isItemValidForSlot(0, itemStack);
// }
// });
// addSlotToContainer(new Slot(tileEntity, 1, 79, 7) {
// @Override
// public boolean isItemValid(ItemStack itemStack) {
// return tileEntity.isItemValidForSlot(1, itemStack);
// }
// });
// addSlotToContainer(new Slot(tileEntity, 2, 103, 17) {
// @Override
// public boolean isItemValid(ItemStack itemStack) {
// return tileEntity.isItemValidForSlot(2, itemStack);
// }
// });
}
}
@@ -1,10 +1,15 @@
package crazypants.enderio.machine.farm;
import java.awt.Color;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.entity.player.InventoryPlayer;
import org.lwjgl.opengl.GL11;
import crazypants.enderio.machine.GuiMachineBase;
import crazypants.render.ColorUtil;
import crazypants.render.RenderUtil;
public class GuiFarmStation extends GuiMachineBase {
@@ -22,6 +27,16 @@ public class GuiFarmStation extends GuiMachineBase {
drawTexturedModalRect(sx, sy, 0, 0, this.xSize, this.ySize);
FontRenderer fr = Minecraft.getMinecraft().fontRenderer;
GL11.glEnable(GL11.GL_BLEND);
fr.drawString("SW", sx + 55, sy + 41, ColorUtil.getARGB(1f,1f,0.35f,1f), true);
fr.drawString("NW", sx + 55, sy + 59, ColorUtil.getARGB(1f,1f,0.35f,1f), true);
fr.drawString("SE", sx + 73, sy + 41, ColorUtil.getARGB(1f,1f,0.35f,1f), true);
fr.drawString("NE", sx + 73, sy + 59, ColorUtil.getARGB(1f,1f,0.35f,1f), true);
GL11.glDisable(GL11.GL_BLEND);
RenderUtil.bindTexture("enderio:textures/gui/farmStation.png");
super.drawGuiContainerBackgroundLayer(par1, par2, par3);
}