mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
github.dev removing files randomly lmfao
This commit is contained in:
28
source/world/tile/TransparentTile.cpp
Normal file
28
source/world/tile/TransparentTile.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
/********************************************************************
|
||||
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"
|
||||
|
||||
TransparentTile::TransparentTile(int ID, int texture, Material* mtl, bool bTransparent) :Tile(ID, texture, mtl)
|
||||
{
|
||||
m_bTransparent = bTransparent;
|
||||
}
|
||||
|
||||
bool TransparentTile::isSolidRender()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool TransparentTile::shouldRenderFace(LevelSource* level, int x, int y, int z, int dir)
|
||||
{
|
||||
if (!m_bTransparent && level->getTile(x, y, z) == m_ID)
|
||||
return false;
|
||||
|
||||
return Tile::shouldRenderFace(level, x, y, z, dir);
|
||||
}
|
||||
Reference in New Issue
Block a user