the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 52 lines 860 B view raw
1#include "stdafx.h" 2 3#include "..\..\..\Minecraft.World\net.minecraft.world.level.tile.entity.h" 4#include "XUI_Ctrl_BubblesProgress.h" 5 6int CXuiCtrlBubblesProgress::GetValue() 7{ 8 void* pvUserData; 9 this->GetUserData( &pvUserData ); 10 11 if( pvUserData != NULL ) 12 { 13 BrewingStandTileEntity *pBrewingStandTileEntity = (BrewingStandTileEntity *)pvUserData; 14 15 int value = 0; 16 int bubbleStep = (pBrewingStandTileEntity->getBrewTime() / 2) % 7; 17 switch (bubbleStep) 18 { 19 case 0: 20 value = 0; 21 break; 22 case 6: 23 value = 5; 24 break; 25 case 5: 26 value = 10; 27 break; 28 case 4: 29 value = 15; 30 break; 31 case 3: 32 value = 20; 33 break; 34 case 2: 35 value = 25; 36 break; 37 case 1: 38 value = 30; 39 break; 40 } 41 42 return value; 43 } 44 45 return 0; 46} 47 48void CXuiCtrlBubblesProgress::GetRange(int *pnRangeMin, int *pnRangeMax) 49{ 50 *pnRangeMin = 0; 51 *pnRangeMax = 30; 52}