the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "FurnaceScreen.h"
3#include "Textures.h"
4#include "LocalPlayer.h"
5#include "Font.h"
6#include "..\Minecraft.World\net.minecraft.world.inventory.h"
7#include "..\Minecraft.World\FurnaceTileEntity.h"
8
9FurnaceScreen::FurnaceScreen(shared_ptr<Inventory> inventory, shared_ptr<FurnaceTileEntity> furnace) : AbstractContainerScreen(new FurnaceMenu(inventory, furnace))
10{
11 this->furnace = furnace;
12}
13
14void FurnaceScreen::renderLabels()
15{
16 font->draw(L"Furnace", 16 + 4 + 40, 2 + 2 + 2, 0x404040);
17 font->draw(L"Inventory", 8, imageHeight - 96 + 2, 0x404040);
18}
19
20void FurnaceScreen::renderBg(float a)
21{
22 // 4J Unused
23#if 0
24 int tex = minecraft->textures->loadTexture(L"/gui/furnace.png");
25 glColor4f(1, 1, 1, 1);
26 minecraft->textures->bind(tex);
27 int xo = (width - imageWidth) / 2;
28 int yo = (height - imageHeight) / 2;
29 this->blit(xo, yo, 0, 0, imageWidth, imageHeight);
30 if (furnace->isLit())
31 {
32 int p = furnace->getLitProgress(12);
33 this->blit(xo + 56, yo + 36 + 12 - p, 176, 12 - p, 14, p + 2);
34 }
35
36 int p = furnace->getBurnProgress(24);
37 this->blit(xo + 79, yo + 34, 176, 14, p + 1, 16);
38#endif
39}