mirror of
https://github.com/celisej567/mcpe.git
synced 2025-12-31 17:49:17 +03:00
35 lines
747 B
C++
35 lines
747 B
C++
/********************************************************************
|
|
Minecraft: Pocket Edition - Decompilation Project
|
|
Copyright (C) 2023 iProgramInCpp
|
|
|
|
The following code is licensed under the BSD 1 clause license.
|
|
SPDX-License-Identifier: BSD-1-Clause
|
|
********************************************************************/
|
|
|
|
#include "BookshelfTile.hpp"
|
|
#include "world/level/Level.hpp"
|
|
|
|
BookshelfTile::BookshelfTile(int a, int b, Material* c) : Tile(a, b, c)
|
|
{
|
|
}
|
|
|
|
int BookshelfTile::getTexture(int dir)
|
|
{
|
|
if (dir <= DIR_YPOS)
|
|
return TEXTURE_PLANKS;
|
|
|
|
return m_TextureFrame;
|
|
}
|
|
|
|
int BookshelfTile::getResource(int data, Random* random)
|
|
{
|
|
return 0; // would be Book
|
|
}
|
|
|
|
int BookshelfTile::getResourceCount(Random* random)
|
|
{
|
|
return 3;
|
|
}
|
|
|
|
|