the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 29 lines 988 B view raw
1#pragma once 2 3#include "BaseEntityTile.h" 4#include "ChestTile.h" 5 6class EnderChestTile : public BaseEntityTile 7{ 8public: 9 static const int EVENT_SET_OPEN_COUNT = ChestTile::EVENT_SET_OPEN_COUNT; 10 11 EnderChestTile(int id); 12 virtual void updateDefaultShape(); // 4J Added override 13 14 bool isSolidRender(bool isServerLevel = false); 15 bool isCubeShaped(); 16 int getRenderShape(); 17 int getResource(int data, Random *random, int playerBonusLevel); 18 int getResourceCount(Random *random); 19 20protected: 21 bool isSilkTouchable(); 22 23public: 24 void setPlacedBy(Level *level, int x, int y, int z, shared_ptr<LivingEntity> by, shared_ptr<ItemInstance> itemInstance); 25 bool use(Level *level, int x, int y, int z, shared_ptr<Player> player, int clickedFace, float clickX, float clickY, float clickZ, bool soundOnly = false); 26 shared_ptr<TileEntity> newTileEntity(Level *level); 27 void animateTick(Level *level, int xt, int yt, int zt, Random *random); 28 virtual void registerIcons(IconRegister *iconRegister); 29};