mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-24 11:29:44 +00:00
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
44
src/world/level/tile/FurnaceTile.h
Executable file
44
src/world/level/tile/FurnaceTile.h
Executable file
|
|
@ -0,0 +1,44 @@
|
|||
#ifndef NET_MINECRAFT_WORLD_LEVEL_TILE__FurnaceTile_H__
|
||||
#define NET_MINECRAFT_WORLD_LEVEL_TILE__FurnaceTile_H__
|
||||
|
||||
//package net.minecraft.world.level->tile;
|
||||
|
||||
#include "EntityTile.h"
|
||||
#include "../../../util/Random.h"
|
||||
|
||||
class Level;
|
||||
class Mob;
|
||||
class Player;
|
||||
class LevelSource;
|
||||
|
||||
class FurnaceTile: public EntityTile
|
||||
{
|
||||
typedef EntityTile super;
|
||||
public:
|
||||
FurnaceTile(int id, bool lit);
|
||||
|
||||
int getTexture(int face);
|
||||
int getTexture(LevelSource* level, int x, int y, int z, int face);
|
||||
|
||||
void animateTick(Level* level, int xt, int yt, int zt, Random* random);
|
||||
|
||||
bool use(Level* level, int x, int y, int z, Player* player);
|
||||
int getResource(int data, Random* random/*, int playerBonusLevel*/);
|
||||
|
||||
static void setLit(bool lit, Level* level, int x, int y, int z);
|
||||
|
||||
TileEntity* newTileEntity();
|
||||
|
||||
void setPlacedBy(Level* level, int x, int y, int z, Mob* by);
|
||||
|
||||
void onPlace(Level* level, int x, int y, int z);
|
||||
void onRemove(Level* level, int x, int y, int z);
|
||||
private:
|
||||
void recalcLockDir(Level* level, int x, int y, int z);
|
||||
|
||||
Random random;
|
||||
const bool lit;
|
||||
static bool noDrop;
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_WORLD_LEVEL_TILE__FurnaceTile_H__*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue