Files
mcpe/source/world/tile/SandStoneTile.cpp
2023-08-10 13:27:30 +03:00

26 lines
655 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 "SandStoneTile.hpp"
#include "world/level/Level.hpp"
SandStoneTile::SandStoneTile(int a, int b, Material* c) : Tile(a, b, c)
{
}
int SandStoneTile::getTexture(int side)
{
if (side == DIR_YNEG)
return TEXTURE_SANDSTONE_BOTTOM;
if (side == DIR_YPOS)
return TEXTURE_SANDSTONE_TOP;
return m_TextureFrame;
}