the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 39 lines 1.2 kB view raw
1#pragma once 2#include "Tile.h" 3#include "Material.h" 4#include "Definitions.h" 5 6class Random; 7class Level; 8class ChunkRebuildData; 9 10class CactusTile : public Tile 11{ 12 friend class Tile; 13 friend class ChunkRebuildData; 14 15private: 16 Icon *iconTop; 17 Icon *iconBottom; 18 19protected: 20 CactusTile(int id); 21 22public: 23 virtual void tick(Level *level, int x, int y, int z, Random *random); 24 virtual AABB *getAABB(Level *level, int x, int y, int z); 25 virtual AABB *getTileAABB(Level *level, int x, int y, int z); 26 virtual Icon *getTexture(int face, int data); 27 virtual bool isCubeShaped(); 28 virtual bool isSolidRender(bool isServerLevel = false); 29 virtual int getRenderShape(); 30 virtual bool mayPlace(Level *level, int x, int y, int z); 31 virtual void neighborChanged(Level *level, int x, int y, int z, int type); 32 virtual bool canSurvive(Level *level, int x, int y, int z); 33 virtual void entityInside(Level *level, int x, int y, int z, shared_ptr<Entity> entity); 34 //@Override 35 void registerIcons(IconRegister *iconRegister); 36 37 // 4J Added so we can check before we try to add a tile to the tick list if it's actually going to do seomthing 38 virtual bool shouldTileTick(Level *level, int x,int y,int z); 39};