the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 27 lines 1.0 kB view raw
1#pragma once 2 3#include "BaseEntityTile.h" 4 5class DaylightDetectorTile : public BaseEntityTile 6{ 7 friend class ChunkRebuildData; 8private: 9 Icon *icons[2]; 10 11public: 12 DaylightDetectorTile(int id); 13 14 virtual void updateDefaultShape(); // 4J Added override 15 virtual void updateShape(LevelSource *level, int x, int y, int z, int forceData = -1, shared_ptr<TileEntity> forceEntity = shared_ptr<TileEntity>()); 16 virtual int getSignal(LevelSource *level, int x, int y, int z, int dir); 17 virtual void tick(Level *level, int x, int y, int z, Random *random); 18 virtual void neighborChanged(Level *level, int x, int y, int z, int type); 19 virtual void onPlace(Level *level, int x, int y, int z); 20 virtual void updateSignalStrength(Level *level, int x, int y, int z); 21 virtual bool isCubeShaped(); 22 virtual bool isSolidRender(bool isServerLevel = false); 23 virtual bool isSignalSource(); 24 virtual shared_ptr<TileEntity> newTileEntity(Level *level); 25 virtual Icon *getTexture(int face, int data); 26 virtual void registerIcons(IconRegister *iconRegister); 27};