mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
github.dev removing files randomly lmfao
This commit is contained in:
34
source/world/tile/BookshelfTile.cpp
Normal file
34
source/world/tile/BookshelfTile.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
/********************************************************************
|
||||
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 "Tile.hpp"
|
||||
#include "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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user