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