Files
GabsPuNs-Project_Zenith_Main/Minecraft.World/BookshelfTile.cpp
GabsPuNs bc6c09146a New File System and Cleanup some code Part 3
* Remove stdafx.h and some <unordered_set> includes
* Update Minecraft Server Defines and remove more unused folders/files
* Unbloat stdafx.h from Minecraft.World
2026-05-24 22:21:41 -04:00

23 lines
515 B
C++

#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;
}