the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 16 lines 655 B view raw
1#pragma once 2#include "BaseEntityTile.h" 3 4class Player; 5 6class NoteBlockTile : public BaseEntityTile 7{ 8public: 9 NoteBlockTile(int id); 10 virtual void neighborChanged(Level *level, int x, int y, int z, int type); 11 virtual bool TestUse(); 12 virtual 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); // 4J added soundOnly param 13 virtual void attack(Level *level, int x, int y, int z, shared_ptr<Player> player); 14 virtual shared_ptr<TileEntity> newTileEntity(Level *level); 15 virtual bool triggerEvent(Level *level, int x, int y, int z, int i, int note); 16};