the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2
3#include "..\..\..\Minecraft.World\FurnaceMenu.h"
4#include "..\..\..\Minecraft.World\FurnaceTileEntity.h"
5#include "XUI_Scene_Furnace.h"
6#include "XUI_Ctrl_FireProgress.h"
7
8int CXuiCtrlFireProgress::GetValue()
9{
10 void* pvUserData;
11 this->GetUserData( &pvUserData );
12
13 if( pvUserData != NULL )
14 {
15 FurnaceTileEntity *pFurnaceTileEntity = (FurnaceTileEntity *)pvUserData;
16
17 // TODO This param is a magic number in Java but we should really define it somewhere with a name
18 // I think it is the number of states of the progress display (ie the max value)
19 return pFurnaceTileEntity->getLitProgress( 12 );
20 }
21
22 return 0;
23}
24
25void CXuiCtrlFireProgress::GetRange(int *pnRangeMin, int *pnRangeMax)
26{
27 *pnRangeMin = 0;
28 *pnRangeMax = 12;
29}