aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/MusicTileEntity.h
blob: a4941ff1138b9d21510020d796a62d282c7c8305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
using namespace std;

#include "TileEntity.h"

class MusicTileEntity :  public TileEntity
{
public:
	eINSTANCEOF GetType() { return eTYPE_MUSICTILEENTITY; }
	static TileEntity *create() { return new MusicTileEntity(); }

public:
	byte note;

	bool on;

	MusicTileEntity();

	virtual void save(CompoundTag *tag);
	virtual void load(CompoundTag *tag);
	void tune();
	void playNote(Level *level, int x, int y, int z);

	// 4J Added
	virtual shared_ptr<TileEntity> clone();
};