public static class Handler extends WorldMessageServer.Handler<MachineCommandActivateMessage> {
@Override
protected IMessage handleMessage(MachineCommandActivateMessage message,
MessageContext ctx, TileEntity te) {
if(te instanceof IActivateable) {
IActivateable machine = (IActivateable)te;
machine.setActive(message.setActive);
}
else {
BRLog.error("Received a MachineCommandActivateMessage for %d, %d, %d but found no activateable machine", message.x, message.y, message.z);
}
return null;