the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 36 lines 762 B view raw
1#include "stdafx.h" 2#include "net.minecraft.world.h" 3#include "net.minecraft.world.item.h" 4#include "ColoredTile.h" 5 6ColoredTile::ColoredTile(int id, Material *material) : Tile(id, material) 7{ 8} 9 10Icon *ColoredTile::getTexture(int face, int data) 11{ 12 return icons[data % ICON_COUNT]; 13} 14 15int ColoredTile::getSpawnResourcesAuxValue(int data) 16{ 17 return data; 18} 19 20int ColoredTile::getTileDataForItemAuxValue(int auxValue) 21{ 22 return (~auxValue & 0xf); 23} 24 25int ColoredTile::getItemAuxValueForTileData(int data) 26{ 27 return (~data & 0xf); 28} 29 30void ColoredTile::registerIcons(IconRegister *iconRegister) 31{ 32 for (int i = 0; i < ICON_COUNT; i++) 33 { 34 icons[i] = iconRegister->registerIcon(getIconName() + L"_" + DyePowderItem::COLOR_TEXTURES[getItemAuxValueForTileData(i)]); 35 } 36}