mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 06:23:37 +00:00
18 lines
585 B
C++
18 lines
585 B
C++
#include "../Platform/stdafx.h"
|
|
#include "BookshelfTile.h"
|
|
#include "../Headers/net.minecraft.world.item.h"
|
|
#include "../Headers/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;
|
|
} |