mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/LegacyNetherFork.git
synced 2026-06-08 14:25:08 +00:00
24 lines
651 B
C++
24 lines
651 B
C++
#include "stdafx.h"
|
|
#include "VeloettGrassTile.h"
|
|
#include "net.minecraft.world.h"
|
|
#include "Facing.h"
|
|
|
|
VeloettGrassTile::VeloettGrassTile(int id) : Tile(id, Material::stone)
|
|
{
|
|
iconTop = NULL;
|
|
iconBottom = NULL;
|
|
}
|
|
|
|
Icon *VeloettGrassTile::getTexture(int face, int data)
|
|
{
|
|
if (face == Facing::UP) return iconTop;
|
|
if (face == Facing::DOWN) return iconBottom;
|
|
return icon;
|
|
}
|
|
|
|
void VeloettGrassTile::registerIcons(IconRegister *iconRegister)
|
|
{
|
|
icon = iconRegister->registerIcon(getIconName() + L"_side");
|
|
iconTop = iconRegister->registerIcon(getIconName() + L"_top");
|
|
iconBottom = iconRegister->registerIcon(L"end_stone");
|
|
} |