December 2014 files
This commit is contained in:
22
Minecraft.World/ComparatorTileEntity.h
Normal file
22
Minecraft.World/ComparatorTileEntity.h
Normal file
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user