forked from Kolyah35/minecraft-pe-0.6.1
the whole game
This commit is contained in:
28
src/world/level/tile/StemTile.h
Executable file
28
src/world/level/tile/StemTile.h
Executable file
@@ -0,0 +1,28 @@
|
||||
#ifndef NET_MINECRAFT_WORLD_LEVEL_TILE__StemTile_H__
|
||||
#define NET_MINECRAFT_WORLD_LEVEL_TILE__StemTile_H__
|
||||
#include "Bush.h"
|
||||
class StemTile : public Bush {
|
||||
typedef Bush super;
|
||||
public:
|
||||
StemTile(int id, Tile* fruit);
|
||||
bool mayPlaceOn(int tile);
|
||||
void tick(Level* level, int x, int y, int z, Random* random);
|
||||
void growCropsToMax(Level* level, int x, int y, int z);
|
||||
int getColor(int data);
|
||||
int getColor(LevelSource* level, int x, int y, int z);
|
||||
int getTexture(int face, int data);
|
||||
void updateDefaultShape();
|
||||
void updateShape(LevelSource* level, int x, int y, int z);
|
||||
int getRenderShape();
|
||||
int getConnectDir(LevelSource* level, int x, int y, int z);
|
||||
void spawnResources(Level* level, int x, int y, int z, int data, float odds);
|
||||
int getResource(int data, Random* random);
|
||||
int getResourceCount(Random* random);
|
||||
private:
|
||||
float getGrowthSpeed(Level* level, int x, int y, int z);
|
||||
|
||||
private:
|
||||
Tile* fruit;
|
||||
};
|
||||
|
||||
#endif /* NET_MINECRAFT_WORLD_LEVEL_TILE__StemTile_H__ */
|
||||
Reference in New Issue
Block a user