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
29
src/world/level/tile/CropTile.h
Executable file
29
src/world/level/tile/CropTile.h
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef NET_MINECRAFT_WORLD_LEVEL_TILE__CropTile_H__
|
||||
#define NET_MINECRAFT_WORLD_LEVEL_TILE__CropTile_H__
|
||||
|
||||
#include "Bush.h"
|
||||
|
||||
class CropTile : public Bush
|
||||
{
|
||||
typedef Bush super;
|
||||
public:
|
||||
CropTile(int id, int tex);
|
||||
bool mayPlaceOn(int tile);
|
||||
void tick(Level* level, int x, int y, int z, Random* random);
|
||||
|
||||
int getTexture(LevelSource* level, int x, int y, int z, int face);
|
||||
int getTexture( int face, int data );
|
||||
|
||||
int getRenderShape();
|
||||
|
||||
void spawnResources(Level* level, int x, int y, int z, int data, float odds);
|
||||
int getResource(int data, Random* random);
|
||||
int getResourceCount(Random* random);
|
||||
|
||||
void growCropsToMax(Level* level, int x, int y, int z);
|
||||
private:
|
||||
float getGrowthSpeed(Level* level, int x, int y, int z);
|
||||
|
||||
};
|
||||
|
||||
#endif /* NET_MINECRAFT_WORLD_LEVEL_TILE__CropTile_H__ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue