aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/HayBlockTile.cpp
blob: c782835c601375dca3dc6cfbcf97920ea6648f56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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");
}