Files
minecraft-pe-0.6.1/src/world/level/tile/StemTile.h
2026-03-02 22:04:18 +03:00

28 lines
995 B
C++
Executable File

#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__ */