the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 42 lines 646 B view raw
1#include "stdafx.h" 2#include "net.minecraft.world.h" 3#include "net.minecraft.world.item.h" 4#include "CarrotTile.h" 5 6CarrotTile::CarrotTile(int id) : CropTile(id) 7{ 8} 9 10Icon *CarrotTile::getTexture(int face, int data) 11{ 12 if (data < 7) 13 { 14 if (data == 6) 15 { 16 data = 5; 17 } 18 return icons[data >> 1]; 19 } 20 else 21 { 22 return icons[3]; 23 } 24} 25 26int CarrotTile::getBaseSeedId() 27{ 28 return Item::carrots_Id; 29} 30 31int CarrotTile::getBasePlantId() 32{ 33 return Item::carrots_Id; 34} 35 36void CarrotTile::registerIcons(IconRegister *iconRegister) 37{ 38 for (int i = 0; i < 4; i++) 39 { 40 icons[i] = iconRegister->registerIcon(getIconName() + L"_stage_" + _toString(i)); 41 } 42}