1
0
cuberite-2a/src/BlockEntities/RedstonePoweredEntity.h

31 lines
517 B
C
Raw Normal View History

// RedstonePoweredEntity.h
// Declares the cRedstonePoweredEntity class representing a mix-in for block entities that respond to redstone
#pragma once
/** Interface class representing a mix-in for block entities that respond to redstone */
class cRedstonePoweredEntity
{
public:
2014-09-22 22:23:56 +00:00
virtual ~cRedstonePoweredEntity() {}
/** Sets the internal redstone power flag to "on" or "off", depending on the parameter.
Calls Activate() if appropriate */
virtual void SetRedstonePower(bool a_IsPowered) = 0;
};