Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GuiFeeder2 extends GuiContainer{
- private IInventory playerInv;
- private TileEntityFeeder te;
- public GuiFeeder2(IInventory playerInv, TileEntityFeeder te){
- super(new ContainerFeeder(playerInv, te));
- this.playerInv = playerInv;
- this.te = te;
- this.xSize = 176;
- this.ySize = 166;
- }
- @Override
- protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
- Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("calling bg"));
- //GlStateManager.color(1.0f, 1.0f, 1.0f, 1.0f);
- this.mc.getTextureManager().bindTexture(new ResourceLocation("sporksstuff:textures/gui/feeder.png"));
- this.drawTexturedModalRect(this.guiLeft, this.guiTop, 0, 0, this.xSize, this.ySize);
- }
- @Override
- protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {
- Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("calling fg"));
- }
- }
Add Comment
Please, Sign In to add comment