aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ComparatorTileEntity.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/ComparatorTileEntity.h')
-rw-r--r--Minecraft.World/ComparatorTileEntity.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/Minecraft.World/ComparatorTileEntity.h b/Minecraft.World/ComparatorTileEntity.h
new file mode 100644
index 00000000..edbf367f
--- /dev/null
+++ b/Minecraft.World/ComparatorTileEntity.h
@@ -0,0 +1,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);
+}; \ No newline at end of file