the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2using namespace std;
3
4#include "TileEntity.h"
5
6class MusicTileEntity : public TileEntity
7{
8public:
9 eINSTANCEOF GetType() { return eTYPE_MUSICTILEENTITY; }
10 static TileEntity *create() { return new MusicTileEntity(); }
11
12public:
13 byte note;
14
15 bool on;
16
17 MusicTileEntity();
18
19 virtual void save(CompoundTag *tag);
20 virtual void load(CompoundTag *tag);
21 void tune();
22 void playNote(Level *level, int x, int y, int z);
23
24 // 4J Added
25 virtual shared_ptr<TileEntity> clone();
26};