the whole game

This commit is contained in:
Kolyah35
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

28
src/world/level/tile/StemTile.h Executable file
View 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__ */