Files
mcpe/source/world/tile/GlassTile.cpp
2023-08-22 22:48:46 +03:00

29 lines
715 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 "GlassTile.hpp"
#include "world/level/Level.hpp"
#include "client/renderer/PatchManager.hpp"
GlassTile::GlassTile(int a, int b, Material* c) : HalfTransparentTile(a, b, c)
{
}
int GlassTile::getResourceCount(Random* pRandom)
{
return 0;
}
int GlassTile::getRenderLayer()
{
if (GetPatchManager()->IsGlassSemiTransparent())
return LAYER_ALPHA;
return LAYER_OPAQUE;
}