the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 32 lines 828 B view raw
1#include "stdafx.h" 2#include "net.minecraft.world.item.h" 3#include "net.minecraft.world.level.tile.h" 4#include "SmoothStoneBrickTileItem.h" 5 6SmoothStoneBrickTileItem::SmoothStoneBrickTileItem(int id, Tile *parentTile) : TileItem(id) 7{ 8 this->parentTile = parentTile; 9 10 setMaxDamage(0); 11 setStackedByData(true); 12} 13 14Icon *SmoothStoneBrickTileItem::getIcon(int itemAuxValue) 15{ 16 return parentTile->getTexture(2, itemAuxValue); 17} 18 19int SmoothStoneBrickTileItem::getLevelDataForAuxValue(int auxValue) 20{ 21 return auxValue; 22} 23 24unsigned int SmoothStoneBrickTileItem::getDescriptionId(shared_ptr<ItemInstance> instance) 25{ 26 int auxValue = instance->getAuxValue(); 27 if (auxValue < 0 || auxValue >= SmoothStoneBrickTile::SMOOTH_STONE_BRICK_NAMES_LENGTH) 28 { 29 auxValue = 0; 30 } 31 return SmoothStoneBrickTile::SMOOTH_STONE_BRICK_NAMES[auxValue]; 32}