Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
762 B · 36 lines
C++
at master
123456789101112131415161718192021222324252627282930313233343536#include "stdafx.h"#include "net.minecraft.world.h"#include "net.minecraft.world.item.h"#include "ColoredTile.h"
ColoredTile::ColoredTile(int id, Material *material) : Tile(id, material){}
Icon *ColoredTile::getTexture(int face, int data){ return icons[data % ICON_COUNT];}
int ColoredTile::getSpawnResourcesAuxValue(int data){ return data;}
int ColoredTile::getTileDataForItemAuxValue(int auxValue){ return (~auxValue & 0xf);}
int ColoredTile::getItemAuxValueForTileData(int data){ return (~data & 0xf);}
void ColoredTile::registerIcons(IconRegister *iconRegister){ for (int i = 0; i < ICON_COUNT; i++) { icons[i] = iconRegister->registerIcon(getIconName() + L"_" + DyePowderItem::COLOR_TEXTURES[getItemAuxValueForTileData(i)]); }}