blob: 8c18b01c2bd737eb2a06007bc033ce5f9ae1c821 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include "stdafx.h"
#include "net.minecraft.world.h"
#include "ClothTile.h"
ClothTile::ClothTile() : Tile(35, Material::cloth)
{
icons = NULL;
}
Icon *ClothTile::getTexture(int face, int data)
{
return icons[data];
}
int ClothTile::getSpawnResourcesAuxValue(int data)
{
return data;
}
int ClothTile::getTileDataForItemAuxValue(int auxValue)
{
return (~auxValue & 0xf);
}
int ClothTile::getItemAuxValueForTileData(int data)
{
return (~data & 0xf);
}
void ClothTile::registerIcons(IconRegister *iconRegister)
{
icons = new Icon*[16];
for (int i = 0; i < 16; i++)
{
icons[i] = iconRegister->registerIcon(L"cloth_" + std::to_wstring(i) );
}
}
|