mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-24 04:18:14 +05:00
23 lines
475 B
C++
23 lines
475 B
C++
#include "stdafx.h"
|
|
#include "net.minecraft.world.h"
|
|
#include "HayBlockTile.h"
|
|
|
|
HayBlockTile::HayBlockTile(int id) : RotatedPillarTile(id, Material::grass)
|
|
{
|
|
}
|
|
|
|
int HayBlockTile::getRenderShape()
|
|
{
|
|
return SHAPE_TREE;
|
|
}
|
|
|
|
Icon *HayBlockTile::getTypeTexture(int type)
|
|
{
|
|
return icon;
|
|
}
|
|
|
|
void HayBlockTile::registerIcons(IconRegister *iconRegister)
|
|
{
|
|
iconTop = iconRegister->registerIcon(getIconName() + L"_top");
|
|
icon = iconRegister->registerIcon(getIconName() + L"_side");
|
|
} |