aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ComparatorTileEntity.h
blob: edbf367ff8e1bb4f7bf9ffe942c56de3eaaa8fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "TileEntity.h"

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

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

private:
	int output;

public:
	void save(CompoundTag *tag);
	void load(CompoundTag *tag);
	int getOutputSignal();
	void setOutputSignal(int value);
};