mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 02:33:36 +00:00
21 lines
465 B
C++
21 lines
465 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 std::shared_ptr<TileEntity> clone();
|
|
|
|
private:
|
|
int output;
|
|
|
|
public:
|
|
void save(CompoundTag* tag);
|
|
void load(CompoundTag* tag);
|
|
int getOutputSignal();
|
|
void setOutputSignal(int value);
|
|
}; |