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\net.minecraft.world.level.tile.entity.h"
4#include "..\..\..\Minecraft.World\SharedConstants.h"
5#include "..\..\..\Minecraft.World\net.minecraft.world.item.alchemy.h"
6#include "XUI_Ctrl_BrewProgress.h"
7
8int CXuiCtrlBrewProgress::GetValue()
9{
10 void* pvUserData;
11 this->GetUserData( &pvUserData );
12
13 if( pvUserData != NULL )
14 {
15 BrewingStandTileEntity *pBrewingStandTileEntity = (BrewingStandTileEntity *)pvUserData;
16
17 return pBrewingStandTileEntity->getBrewTime();
18 }
19
20 return 0;
21}
22
23void CXuiCtrlBrewProgress::GetRange(int *pnRangeMin, int *pnRangeMax)
24{
25 *pnRangeMin = 0;
26 *pnRangeMax = PotionBrewing::BREWING_TIME_SECONDS * SharedConstants::TICKS_PER_SECOND;
27}