mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-25 12:48:13 +05:00
22 lines
433 B
C++
22 lines
433 B
C++
#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);
|
|
}; |