mirror of
https://github.com/celisej567/mcpe.git
synced 2025-12-31 17:49:17 +03:00
29 lines
715 B
C++
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;
|
|
}
|