Esempio n. 1
0
  @Override
  protected void drawGuiContainerBackgroundLayer(float f, int i, int j) {
    TFC_Core.bindTexture(
        new ResourceLocation(Reference.ModID, Reference.AssetPathGui + "gui_mold.png"));
    GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
    int w = (width - xSize) / 2;
    int h = (height - ySize) / 2;
    drawTexturedModalRect(w, h, 0, 0, xSize, ySize);

    drawTexturedModalRect(w + 85, h + 17, 176, 0, drawArrowScaled(22) + 1, 15);

    PlayerInventory.drawInventory(this, width, height, ySize - PlayerInventory.invYSize);
  }
Esempio n. 2
0
  public ContainerFoodPrep(
      InventoryPlayer playerinv, TEFoodPrep pile, World world, int x, int y, int z) {
    this.player = playerinv.player;
    this.te = pile;
    this.world = world;
    this.posX = x;
    this.posY = y;
    this.posZ = z;
    pile.openChest();
    layoutContainer(playerinv, pile, 0, 0);

    PlayerInventory.buildInventoryLayout(this, playerinv, 8, 90, false, true);
  }