blob: d8c03fe18dcae2e8b2f6a62798bae269a0f5730c (
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
|
#include "stdafx.h"
#include "BookshelfTile.h"
#include "net.minecraft.world.item.h"
#include "net.minecraft.h"
BookshelfTile::BookshelfTile(int id) : Tile(id, Material::wood)
{
}
Icon *BookshelfTile::getTexture(int face, int data)
{
if (face == Facing::UP || face == Facing::DOWN) return Tile::wood->getTexture(face);
return Tile::getTexture(face, data);
}
int BookshelfTile::getResourceCount(Random *random)
{
return 3;
}
int BookshelfTile::getResource(int data, Random *random,int playerBonusLevel)
{
return Item::book_Id;
}
|