first commit
This commit is contained in:
44
Minecraft.World/CropTile.h
Normal file
44
Minecraft.World/CropTile.h
Normal file
@@ -0,0 +1,44 @@
|
||||
#pragma once
|
||||
#include "Bush.h"
|
||||
#include "Material.h"
|
||||
|
||||
class Random;
|
||||
class Level;
|
||||
class ChunkRebuildData;
|
||||
|
||||
class CropTile : public Bush
|
||||
{
|
||||
friend class Tile;
|
||||
friend class ChunkRebuildData;
|
||||
private:
|
||||
Icon **icons;
|
||||
|
||||
protected:
|
||||
CropTile(int id);
|
||||
virtual bool mayPlaceOn(int tile);
|
||||
public:
|
||||
// 4J Added override
|
||||
virtual void updateDefaultShape();
|
||||
virtual void tick(Level *level, int x, int y, int z, Random *random);
|
||||
void growCropsToMax(Level *level, int x, int y, int z);
|
||||
private:
|
||||
float getGrowthSpeed(Level *level, int x, int y, int z);
|
||||
public:
|
||||
virtual Icon *getTexture(int face, int data);
|
||||
virtual int getRenderShape();
|
||||
protected:
|
||||
virtual int getBaseSeedId();
|
||||
virtual int getBasePlantId();
|
||||
|
||||
public:
|
||||
/**
|
||||
* Using this method instead of destroy() to determine if seeds should be
|
||||
* dropped
|
||||
*/
|
||||
virtual void spawnResources(Level *level, int x, int y, int z, int data, float odds, int playerBonus);
|
||||
virtual int getResource(int data, Random *random, int playerBonusLevel);
|
||||
virtual int getResourceCount(Random *random);
|
||||
virtual int cloneTileId(Level *level, int x, int y, int z);
|
||||
//@Override
|
||||
virtual void registerIcons(IconRegister *iconRegister);
|
||||
};
|
||||
Reference in New Issue
Block a user