forked from mirrors/kolyah35-minecraft-pe-0.6.1
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
37
src/world/level/tile/SandStoneTile.h
Executable file
37
src/world/level/tile/SandStoneTile.h
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
#ifndef NET_MINECRAFT_WORLD_LEVEL_TILE__SandStoneTile_H__
|
||||
#define NET_MINECRAFT_WORLD_LEVEL_TILE__SandStoneTile_H__
|
||||
|
||||
//package net.minecraft.world.level.tile;
|
||||
|
||||
#include "../../../util/Random.h"
|
||||
#include "../../Facing.h"
|
||||
#include "../material/Material.h"
|
||||
#include "../Level.h"
|
||||
|
||||
#include "Tile.h"
|
||||
#include "MultiTextureTile.h"
|
||||
|
||||
class SandStoneTile: public MultiTextureTile
|
||||
{
|
||||
typedef MultiTextureTile super;
|
||||
public:
|
||||
SandStoneTile(int id, const int* textures, int texCount)
|
||||
: super(id, textures, texCount, Material::stone)
|
||||
{}
|
||||
|
||||
int getTexture(int face, int data) {
|
||||
if (face == Facing::UP || (face == Facing::DOWN && data > 0)) {
|
||||
return 11 * 16;//tex - 16;
|
||||
}
|
||||
if (face == Facing::DOWN) {
|
||||
return 13 * 16;//tex + 16;
|
||||
}
|
||||
return super::getTexture(face, data);
|
||||
}
|
||||
|
||||
static const int TYPE_DEFAULT = 0;
|
||||
static const int TYPE_HEIROGLYPHS = 1;
|
||||
static const int TYPE_SMOOTHSIDE = 2;
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_WORLD_LEVEL_TILE__SandStoneTile_H__*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue