mirror of
https://github.com/celisej567/mcpe.git
synced 2025-12-31 17:49:17 +03:00
34 lines
843 B
C++
34 lines
843 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 "ClothTile.hpp"
|
|
#include "world/level/Level.hpp"
|
|
|
|
ClothTile::ClothTile(int id, int type) : Tile(id, TEXTURE_WOOL, Material::cloth)
|
|
{
|
|
field_6C = type;
|
|
|
|
m_TextureFrame = ClothTile::getTexture(0, type);
|
|
}
|
|
|
|
int ClothTile::getTexture(int dir)
|
|
{
|
|
return getTexture(dir, field_6C);
|
|
}
|
|
|
|
int ClothTile::getTexture(int dir, int data)
|
|
{
|
|
//@HUH: what?
|
|
return ((~(this->field_6C & 0xFu) >> 3) & 1) + 16 * (~(this->field_6C & 0xF) & 7) + 113;
|
|
}
|
|
|
|
int ClothTile::getSpawnResourcesAuxValue(int val)
|
|
{
|
|
return val;
|
|
}
|