first commit
This commit is contained in:
24
Minecraft.World/BookshelfTile.cpp
Normal file
24
Minecraft.World/BookshelfTile.cpp
Normal file
@@ -0,0 +1,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;
|
||||
}
|
||||
Reference in New Issue
Block a user